public class InvalidFieldException extends RuntimeException
Constructor and Description |
---|
InvalidFieldException(String field,
String reason)
Creates a new invalid field exception about a given field.
|
InvalidFieldException(String field,
Throwable cause)
Creates a new invalid field exception about a given field.
|
Modifier and Type | Method and Description |
---|---|
String |
field()
Returns the field name.
|
String |
reason()
Returns the reason the field failed to validate.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString