Package alpine.validation
Class ValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- alpine.validation.ValidationException
-
- All Implemented Interfaces:
Serializable
public class ValidationException extends Exception
A ValidationException may be thrown if the specified input fails validation.- Since:
- 1.0
- Author:
- Steve Springett
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValidationException(Object input, String message)Constructs a new ValidationException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrowablegetCause()ObjectgetInput()Returns the object that failed validationStringgetLocalizedMessage()StringgetMessage()Returns the validation error messageStackTraceElement[]getStackTrace()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getInput
public Object getInput()
Returns the object that failed validation- Returns:
- the object that failed validation
-
getMessage
public String getMessage()
Returns the validation error message- Overrides:
getMessagein classThrowable- Returns:
- an error message
-
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessagein classThrowable
-
getStackTrace
public StackTraceElement[] getStackTrace()
- Overrides:
getStackTracein classThrowable
-
-