Package org.javalite.validation
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.javalite.validation.ValidationException
- All Implemented Interfaces:
Serializable
- Author:
- Igor Polevoy
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorDescriptionValidationException(String message)
ValidationException(Validatable validatable)
-
Method Summary
Modifier and TypeMethodDescriptionerrors()
Convenience method, returns the same object with errors that is attached to a model generated this exception.Convenience method, returns the same object with errors that is attached to a model generated this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ValidationException
-
ValidationException
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
errors
Convenience method, returns the same object with errors that is attached to a model generated this exception.- Returns:
- the same object wit errors that is attached to a model generated this exception
-
errors
Convenience method, returns the same object with errors that is attached to a model generated this exception.- Parameters:
locale
- locale in case messages are localized.- Returns:
- the same object wit errors that is attached to a model generated this exception
-