|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.taursys.util.ChainedException com.taursys.model.ModelException
General Exception for problems encountered in Model objects.
Field Summary | |
static int |
REASON_INTERNAL_ERROR
|
static int |
REASON_MODEL_IS_WRONG_CLASS
|
static int |
REASON_MULTI_PROPERTY_MISMATCH
|
static int |
REASON_OBJECTS_ARE_IMMUTABLE
|
static int |
REASON_OFFSET
|
static int |
REASON_PARSE_CONVERSION_ERROR
|
Fields inherited from class com.taursys.util.ChainedException |
cause, diagnosticInfo, reason, REASON_INVALID_REASON_CODE, REASON_UNSPECIFIED, userFriendlyMessage |
Constructor Summary | |
|
ModelException(int reason)
Creates a ModelException with a reason code (which will display its message). |
|
ModelException(int reason,
java.lang.String diagnosticInfo)
Creates a ModelException with a reason code (which will display its message). |
|
ModelException(int reason,
java.lang.Throwable cause)
Creates a ModelException with a reason code (which will display its message). |
protected |
ModelException(java.lang.String message,
int reason)
Creates a ChainedException with a message. |
protected |
ModelException(java.lang.String message,
int reason,
java.lang.Throwable cause)
Creates a ChainedException with a message. |
Method Summary | |
static java.lang.String |
getReasonMessage(int reason)
Returns String for given reason code else String for REASON_INVALID_REASON_CODE. |
Methods inherited from class com.taursys.util.ChainedException |
getCause, getDiagnosticInfo, getInvalidMessage, getLocalizedMessage, getReason, getUserFriendlyMessage, main, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int REASON_OFFSET
public static final int REASON_MODEL_IS_WRONG_CLASS
public static final int REASON_OBJECTS_ARE_IMMUTABLE
public static final int REASON_INTERNAL_ERROR
public static final int REASON_PARSE_CONVERSION_ERROR
public static final int REASON_MULTI_PROPERTY_MISMATCH
Constructor Detail |
public ModelException(int reason)
public ModelException(int reason, java.lang.Throwable cause)
public ModelException(int reason, java.lang.String diagnosticInfo)
protected ModelException(java.lang.String message, int reason)
protected ModelException(java.lang.String message, int reason, java.lang.Throwable cause)
Method Detail |
public static java.lang.String getReasonMessage(int reason)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |