Class 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:
Last modified
$Date: 2008-09-11 22:11:02 +0200 (to, 11 sep 2008) $
  • Field Details

  • Constructor Details

    • 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