public class InvalidFieldException
extends java.lang.RuntimeException
Constructor and Description |
---|
InvalidFieldException(java.lang.String field,
java.lang.String reason)
Creates a new invalid field exception about a given field.
|
InvalidFieldException(java.lang.String field,
java.lang.Throwable cause)
Creates a new invalid field exception about a given field.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
field()
Returns the field name.
|
java.lang.String |
reason()
Returns the reason the field failed to validate.
|
public InvalidFieldException(java.lang.String field, java.lang.String reason)
field
- field namereason
- reason the field is invalidpublic InvalidFieldException(java.lang.String field, java.lang.Throwable cause)
field
- field namecause
- throwable that occurred while trying to validate field