net.sf.basedb.core
Class DisallowedValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.sf.basedb.core.BaseException
net.sf.basedb.core.InvalidDataException
net.sf.basedb.core.DisallowedValueException
- All Implemented Interfaces:
- Serializable
public class DisallowedValueException
- extends InvalidDataException
Exception that is thrown when a value is not found among a set of allowed
values, for example, when setting an annotation value.
- Version:
- 2.4
- Author:
- nicklas
- See Also:
- Serialized Form
- Last modified
- $Date: 2008-09-11 22:11:02 +0200 (Thu, 11 Sep 2008) $
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
DisallowedValueException
public DisallowedValueException()
- Create a new
DisallowedValueException
object.
DisallowedValueException
public DisallowedValueException(String msg)
- Create a new
DisallowedValueException
exception.
- Parameters:
msg
- Message from the caller to throw with the exception.
DisallowedValueException
public DisallowedValueException(String field,
Object value)
- Create a new
DisallowedValueException
object.
- Parameters:
field
- The name of the field or parameter that doesn't allow this
valuevalue
- The value that is not allowed