public class InvalidValueException extends RuntimeException
Constructor and Description |
---|
InvalidValueException(Object value)
Constructor that accepts the invalid
value . |
InvalidValueException(Object value,
Throwable throwable)
This constructors takes the invalid
value plus a possible throwable that should be
wrapped by this exception. |
Modifier and Type | Method and Description |
---|---|
Object |
getValue()
Returns the value that is said to be invalid.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidValueException(Object value)
value
.value
- the invalid valuepublic InvalidValueException(Object value, Throwable throwable)
value
plus a possible throwable
that should be
wrapped by this exception.value
- the invalid value.throwable
- the Throwable
(e.g. a non-runtime Exception) that should be wrapped inside this
exception.public Object getValue()
Copyright © 2015. All Rights Reserved.