public class ParameterValidationException extends Exception
Constructor and Description |
---|
ParameterValidationException() |
Modifier and Type | Method and Description |
---|---|
void |
addError(ParameterValidationError error) |
List<ParameterValidationError> |
getErrors() |
String |
getMessageKey() |
void |
setErrors(List<ParameterValidationError> errors) |
void |
setMessageKey(String messageKey) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public void addError(ParameterValidationError error)
error
- adds an error the the list of errors, that caused this exceptionpublic List<ParameterValidationError> getErrors()
public String getMessageKey()
public void setErrors(List<ParameterValidationError> errors)
errors
- list of errors, that caused this exceptionpublic void setMessageKey(String messageKey)
messageKey
- message key (I18n) for the occurred exceptionCopyright © 2019 Communote team. All rights reserved.