public class InvalidStringValueException extends InvalidValueException
| Constructor and Description |
|---|
InvalidStringValueException(String value)
Constructor that accepts the invalid value.
|
InvalidStringValueException(String 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 |
|---|---|
String |
getStringValue()
Returns the value that is said to be invalid explicitly as a
String. |
getValueaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InvalidStringValueException(String value)
value - the invalid valuepublic InvalidStringValueException(String value, Throwable throwable)
value - the invalid value.throwable - the Throwable (e.g. a non-runtime Exception) that should be wrapped inside this exception.public String getStringValue()
String.Copyright © 2015. All Rights Reserved.