com.taursys.model
Class NotInListException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.taursys.util.ChainedException
com.taursys.model.ModelException
com.taursys.model.SelectModelException
com.taursys.model.NotInListException
- All Implemented Interfaces:
- java.io.Serializable
- public class NotInListException
- extends SelectModelException
Exception generated when item is not in list. Typically used with SelectModel.
- See Also:
- Serialized Form
Constructor Summary |
NotInListException(int reason)
Constructs a new exception for given reason |
NotInListException(int reason,
java.lang.String value)
Constructs a new exception for given reason with given diagnostic value |
Method Summary |
static java.lang.String |
getReasonMessage(int reason)
Returns String for given reason code else String for REASON_INVALID_REASON_CODE. |
java.lang.String |
getValue()
|
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 |
REASON_OFFSET
public static final int REASON_OFFSET
- See Also:
- Constant Field Values
CURRENT_VALUE_NOT_IN_LIST
public static final int CURRENT_VALUE_NOT_IN_LIST
- See Also:
- Constant Field Values
GIVEN_VALUE_NOT_IN_LIST
public static final int GIVEN_VALUE_NOT_IN_LIST
- See Also:
- Constant Field Values
NotInListException
public NotInListException(int reason)
- Constructs a new exception for given reason
NotInListException
public NotInListException(int reason,
java.lang.String value)
- Constructs a new exception for given reason with given diagnostic value
getReasonMessage
public static java.lang.String getReasonMessage(int reason)
- Returns String for given reason code else String for REASON_INVALID_REASON_CODE.
getValue
public java.lang.String getValue()
Copyright © 2007 Martin T Phelan. All Rights Reserved.