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, toStringpublic ValidationException(Validatable validatable)
public String getMessage()
getMessage in class Throwablepublic Errors errors()
public Errors errors(Locale locale)
locale - locale in case messages are localized.Copyright © 2022 JavaLite. All rights reserved.