public class DisallowedValueException extends InvalidDataException
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
DisallowedValueException()
Create a new
DisallowedValueException object. |
DisallowedValueException(java.lang.String msg)
Create a new
DisallowedValueException exception. |
DisallowedValueException(java.lang.String field,
java.lang.Object value)
Create a new
DisallowedValueException object. |
private static final long serialVersionUID
public DisallowedValueException()
DisallowedValueException
object.public DisallowedValueException(java.lang.String msg)
DisallowedValueException
exception.msg
- Message from the caller to throw with the exception.public DisallowedValueException(java.lang.String field, java.lang.Object value)
DisallowedValueException
object.field
- The name of the field or parameter that doesn't allow this
valuevalue
- The value that is not allowed