public class ValidationException extends DBException
Constructor and Description |
---|
ValidationException(Model m) |
ValidationException(String message) |
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(Model m)
public ValidationException(String message)
public String getMessage()
getMessage
in class Throwable
public Errors errors()
public Errors errors(Locale locale)
locale
- locale in case messages are localized.Copyright © 2019 JavaLite. All rights reserved.