de.smartics.properties.resource.util
Class TypeProblemMessageBean

java.lang.Object
  extended by de.smartics.exceptions.i18n.AbstractMessageBean
      extended by de.smartics.properties.api.core.app.AbstractBaseMessageBean
          extended by de.smartics.properties.resource.util.TypeProblemMessageBean
All Implemented Interfaces:
de.smartics.exceptions.i18n.MessageBean, Serializable

public final class TypeProblemMessageBean
     
     
extends AbstractBaseMessageBean

Provides context information for errors regarding a type.

See Also:
Serialized Form

Nested Class Summary
static class TypeProblemMessageBean.Builder
          Creates instances of TypeProblemMessageBean.
 
Field Summary
 
Fields inherited from class de.smartics.exceptions.i18n.AbstractMessageBean
code, localizedInfo
 
Constructor Summary
TypeProblemMessageBean(Class<?> type)
          Convenience constructor without root cause.
TypeProblemMessageBean(Throwable cause, Class<?> type)
          Default constructor.
 
Method Summary
 int getDuplicateCount()
          Returns the count of duplicates.
 String getDuplicates()
          Returns the list of duplicates implementations of the same type.
 int getErrorCount()
          Returns the count of errors.
 String getErrors()
          Returns the list of errors encountered while trying to instantiate a service type.
 String toString()
           
 
Methods inherited from class de.smartics.exceptions.i18n.AbstractMessageBean
getCause, getCauseTrail, getCauseTrail, getClassLoader, getCode, getLocalizedInfo, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedTextMessage, getLocalizedTextMessage, getLocalizedTextMessage, getMessage, getMessage, getMessage, getMessages, getMessages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeProblemMessageBean

public TypeProblemMessageBean(Class<?> type)
Convenience constructor without root cause.

Parameters:
type - the type that is the cause of the problem.

TypeProblemMessageBean

public TypeProblemMessageBean(Throwable cause,
                              Class<?> type)
Default constructor.

Parameters:
cause - the cause to the problem.
type - the type that is the cause of the problem.
Method Detail

getDuplicates

@MessageParam(value="duplicates")
public String getDuplicates()
Returns the list of duplicates implementations of the same type.

Returns:
the list of duplicates implementations of the same type as a message.

getDuplicateCount

@MessageParam(value="duplicateCount")
public int getDuplicateCount()
Returns the count of duplicates.

Returns:
the count of duplicates.

getErrors

@MessageParam(value="errors")
public String getErrors()
Returns the list of errors encountered while trying to instantiate a service type.

Returns:
the list of errors encountered while trying to instantiate a service type as a message.

getErrorCount

@MessageParam(value="errorCount")
public int getErrorCount()
Returns the count of errors.

Returns:
the count of errors.

toString

public String toString()
Overrides:
toString in class de.smartics.exceptions.i18n.AbstractMessageBean


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.