Package alpine.common.validation
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
alpine.common.validation.ValidationException
- All Implemented Interfaces:
Serializable
A ValidationException may be thrown if the specified input fails validation.
- Since:
- 1.0
- Author:
- Steve Springett
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionValidationException(Object input, String message) Constructs a new ValidationException -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ValidationException
Constructs a new ValidationException- Parameters:
input- the input that failed validationmessage- the error message explaining why validation failed
-
-
Method Details
-
getInput
Returns the object that failed validation- Returns:
- the object that failed validation
-
getMessage
Returns the validation error message- Overrides:
getMessagein classThrowable- Returns:
- an error message
-
getCause
-
getLocalizedMessage
- Overrides:
getLocalizedMessagein classThrowable
-
getStackTrace
- Overrides:
getStackTracein classThrowable
-