|
|||||||||||
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 com.taursys.model.ModelParseException
ModelExceptions encountered while parsing text value. This exception stores information about the reason and various other meaningful data whenever an Exception occurs during a Parse operation.
Field Summary | |
protected static java.lang.String[] |
messages
|
static int |
REASON_OFFSET
|
static int |
REASON_PARSE_ERROR
|
Fields inherited from class com.taursys.model.ModelException |
REASON_INTERNAL_ERROR, REASON_MODEL_IS_WRONG_CLASS, REASON_MULTI_PROPERTY_MISMATCH, REASON_OBJECTS_ARE_IMMUTABLE, REASON_PARSE_CONVERSION_ERROR |
Fields inherited from class com.taursys.util.ChainedException |
cause, diagnosticInfo, reason, REASON_INVALID_REASON_CODE, REASON_UNSPECIFIED, userFriendlyMessage |
Constructor Summary | |
protected |
ModelParseException()
Creates a ModelParseException with a REASON_PARSE_ERROR. |
|
ModelParseException(java.lang.String propertyName,
int javaDataType,
java.text.Format format,
java.lang.String pattern,
java.lang.String givenValue,
java.lang.Throwable cause)
Constructs exception for given propertyName, data type, etc. |
Method Summary | |
java.lang.String |
getFormatClass()
Gets the Format object which was trying to parse given value |
java.lang.String |
getFormatPattern()
Gets the Pattern used by the Format object to parse the given value |
java.lang.String |
getGivenValue()
Gets the given value which was being parsed |
java.lang.String |
getPropertyDataType()
Gets the data type of the property where the parsed value would be stored |
java.lang.String |
getPropertyName()
Gets property name where the parsed value would be stored |
static java.lang.String |
getReasonMessage(int reason)
Returns String for given reason code else String for REASON_INVALID_REASON_CODE. |
protected void |
setDiagnosticsInfo()
Builds the diagnosticsInfo String from the current property values. |
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_PARSE_ERROR
protected static final java.lang.String[] messages
Constructor Detail |
public ModelParseException(java.lang.String propertyName, int javaDataType, java.text.Format format, java.lang.String pattern, java.lang.String givenValue, java.lang.Throwable cause)
protected ModelParseException()
Method Detail |
public static java.lang.String getReasonMessage(int reason)
protected void setDiagnosticsInfo()
public java.lang.String getPropertyDataType()
public java.lang.String getPropertyName()
public java.lang.String getGivenValue()
public java.lang.String getFormatClass()
public java.lang.String getFormatPattern()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |