public class ValidationException extends RuntimeException
Constructor and Description |
---|
ValidationException(Validatable validatable) |
Modifier and Type | Method and Description |
---|---|
Errors |
errors()
Convenience method, returns the same object with errors that is attached to a model generated this exception.
|
Errors |
errors(Locale locale)
Convenience method, returns the same object with errors that is attached to a model generated this exception.
|
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ValidationException(Validatable validatable)
public String getMessage()
getMessage
in class Throwable
public Errors errors()
public Errors errors(Locale locale)
locale
- locale in case messages are localized.Copyright © 2020 JavaLite. All rights reserved.