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
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 (to, 11 sep 2008) $
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description DisallowedValueException()
Create a newDisallowedValueException
object.DisallowedValueException(String msg)
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 Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DisallowedValueException
public DisallowedValueException()
Create a newDisallowedValueException
object.
-
DisallowedValueException
public DisallowedValueException(String msg)
Create a newDisallowedValueException
exception.- Parameters:
msg
- Message from the caller to throw with the exception.
-
-