public class ValidationException extends IllegalArgumentException
Constructor and Description |
---|
ValidationException() |
Modifier and Type | Method and Description |
---|---|
void |
addValidationError(String error)
Add a new validation error to the accumulating validation errors
|
void |
addValidationErrors(Iterable<String> errors)
Add a sequence of validation errors to the accumulating validation errors
|
String |
getMessage() |
List<String> |
validationErrors()
Returns the validation errors accumulated
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public final void addValidationError(String error)
error
- the error to addpublic final void addValidationErrors(Iterable<String> errors)
errors
- the errors to addpublic final List<String> validationErrors()
public final String getMessage()
getMessage
in class Throwable
Copyright © 2009–2016. All rights reserved.