2.17.2: 2011-06-17

net.sf.basedb.core
Class DisallowedValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.basedb.core.BaseException
                  extended by net.sf.basedb.core.InvalidDataException
                      extended by 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) $

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
DisallowedValueException()
          Create a new DisallowedValueException object.
DisallowedValueException(String msg)
          Create a new DisallowedValueException exception.
DisallowedValueException(String field, Object value)
          Create a new DisallowedValueException object.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

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 value
value - The value that is not allowed

2.17.2: 2011-06-17