public class IllegalValueTypeException extends Exception
Constructor and Description |
---|
IllegalValueTypeException(Value value,
Value.Type expectedValueType)
Creates a new illegal value type exception.
|
Modifier and Type | Method and Description |
---|---|
Value.Type |
getExpectedValueType()
Returns the expected type of the value.
|
String |
getMessage()
Returns a message describing the exception.
|
Value |
getValue()
Returns the value.
|
String |
toString()
Returns a string representation of the exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public IllegalValueTypeException(Value value, Value.Type expectedValueType)
value
- the valueexpectedValueType
- the expected type of the valuepublic Value.Type getExpectedValueType()
public String getMessage()
getMessage
in class Throwable