com.devsphere.mapping
Class MappingError
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.devsphere.mapping.MappingError
- All Implemented Interfaces:
- java.io.Serializable
- public class MappingError
- extends java.lang.Exception
This class groups an error type, a throwable and a message.
- See Also:
- Serialized Form
|
Constructor Summary |
MappingError(java.lang.String type,
java.lang.String message,
java.lang.Throwable throwable)
Creates a mapping error. |
|
Method Summary |
java.lang.String |
getMessage()
Gets the message of this error. |
java.lang.Throwable |
getThrowable()
Gets the exception that generated this error. |
java.lang.String |
getType()
Gets the type of this error. |
boolean |
isApplicationError()
Returns true if this object is an application error. |
boolean |
isUserError()
Returns true if this object is a user error. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
INITIALIZATION_ERROR
public static final java.lang.String INITIALIZATION_ERROR
SELF_CONTAINED_BEAN
public static final java.lang.String SELF_CONTAINED_BEAN
MULTIDIMENSIONAL_ARRAY
public static final java.lang.String MULTIDIMENSIONAL_ARRAY
MAPPING_ERROR
public static final java.lang.String MAPPING_ERROR
WRONG_CLASS
public static final java.lang.String WRONG_CLASS
INSTANTIATION_ERROR
public static final java.lang.String INSTANTIATION_ERROR
NO_GETTER
public static final java.lang.String NO_GETTER
GETTER_ERROR
public static final java.lang.String GETTER_ERROR
MULTIREFERENCED_BEAN
public static final java.lang.String MULTIREFERENCED_BEAN
NO_SETTER
public static final java.lang.String NO_SETTER
SETTER_ERROR
public static final java.lang.String SETTER_ERROR
MISSING_ARRAY_LENGTH
public static final java.lang.String MISSING_ARRAY_LENGTH
INVALID_ARRAY_LENGTH
public static final java.lang.String INVALID_ARRAY_LENGTH
SETTER_ILLEGAL_ARGUMENT
public static final java.lang.String SETTER_ILLEGAL_ARGUMENT
NUMBER_FORMAT_ERROR
public static final java.lang.String NUMBER_FORMAT_ERROR
MISSING_DATA
public static final java.lang.String MISSING_DATA
MISSING_FORM_ELEMENT
public static final java.lang.String MISSING_FORM_ELEMENT
MISSING_TEXT_DATA
public static final java.lang.String MISSING_TEXT_DATA
MISSING_CHECKBOX_DATA
public static final java.lang.String MISSING_CHECKBOX_DATA
MISSING_RADIO_DATA
public static final java.lang.String MISSING_RADIO_DATA
MISSING_SELECT_DATA
public static final java.lang.String MISSING_SELECT_DATA
MISSING_UPLOADED_FILE
public static final java.lang.String MISSING_UPLOADED_FILE
MISSING_UPLOADED_FILES
public static final java.lang.String MISSING_UPLOADED_FILES
MappingError
public MappingError(java.lang.String type,
java.lang.String message,
java.lang.Throwable throwable)
- Creates a mapping error.
- Parameters:
type - the type of the error.message - the error message.throwable - the exception that generated the error.
getType
public java.lang.String getType()
- Gets the type of this error.
- Returns:
- the type of this error.
getMessage
public java.lang.String getMessage()
- Gets the message of this error.
- Overrides:
getMessage in class java.lang.Throwable
- Returns:
- the message of this error.
getThrowable
public java.lang.Throwable getThrowable()
- Gets the exception that generated this error.
- Returns:
- the exception that generated this error.
isUserError
public boolean isUserError()
- Returns true if this object is a user error.
- Returns:
- true if this object is a user error.
isApplicationError
public boolean isApplicationError()
- Returns true if this object is an application error.
- Returns:
- true if this object is an application error.
toString
public java.lang.String toString()
- Returns a string representation of this object.
- Overrides:
toString in class java.lang.Throwable
- Returns:
- a string representation of this object.