|
|||||||||||
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.SelectModelException
General Exception for problems encountered in DefaultSelectModel objects.
Field Summary | |
static int |
REASON_HOLDER_LIST_MISMATCH
|
static int |
REASON_OFFSET
|
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 | |
|
SelectModelException(int reason,
java.lang.String displayPropertyName,
java.lang.String[] listPropertyNames,
java.lang.String[] propertyNames,
boolean nullAllowed,
java.lang.String nullDisplay)
Creates a ModelException with a reason code (which will display its message). |
protected |
SelectModelException(java.lang.String message,
int reason)
Creates a ModelException with a reason code (which will display its message). |
Method Summary | |
java.lang.String |
getDisplayPropertyName()
Returns the property name of the list object to display in the list. |
java.lang.String[] |
getListPropertyNames()
Returns array of property names in list object to copy to valueHolder object. |
java.lang.String |
getNullDisplay()
Returns value to display in list for a null value. |
java.lang.String[] |
getPropertyNames()
Sets array of property names in valueHolder object that correspond to properties of list object. |
static java.lang.String |
getReasonMessage(int reason)
Returns String for given reason code else String for REASON_INVALID_REASON_CODE. |
boolean |
isNullAllowed()
Returns indicator that a null value is a valid selection. |
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_HOLDER_LIST_MISMATCH
Constructor Detail |
public SelectModelException(int reason, java.lang.String displayPropertyName, java.lang.String[] listPropertyNames, java.lang.String[] propertyNames, boolean nullAllowed, java.lang.String nullDisplay)
protected SelectModelException(java.lang.String message, int reason)
Method Detail |
public static java.lang.String getReasonMessage(int reason)
protected void setDiagnosticsInfo()
public java.lang.String getDisplayPropertyName()
public java.lang.String[] getListPropertyNames()
public java.lang.String[] getPropertyNames()
public boolean isNullAllowed()
public java.lang.String getNullDisplay()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |