Package 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
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:
- Last modified
- $Date: 2008-09-11 22:11:02 +0200 (to, 11 sep 2008) $
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreate a newDisallowedValueException
object.Create a newDisallowedValueException
exception.DisallowedValueException
(String field, Object value) Create a newDisallowedValueException
object. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
DisallowedValueException
public DisallowedValueException()Create a newDisallowedValueException
object. -
DisallowedValueException
Create a newDisallowedValueException
exception.- Parameters:
msg
- Message from the caller to throw with the exception.
-
DisallowedValueException
Create a newDisallowedValueException
object.- Parameters:
field
- The name of the field or parameter that doesn't allow this valuevalue
- The value that is not allowed
-