public class ValidationExceptionImpl extends ValidationException
Constructor and Description |
---|
ValidationExceptionImpl() |
ValidationExceptionImpl(String summaryMessage) |
ValidationExceptionImpl(String summaryMessage,
List<String> errors,
List<String> warnings)
Constructs a
ValidationException with a specified summary message of the failure and
associated errors and warnings. |
ValidationExceptionImpl(String summaryMessage,
Throwable cause) |
ValidationExceptionImpl(String summaryMessage,
Throwable cause,
List<String> errors,
List<String> warnings)
Constructs a
ValidationException with a specified summary message of the failure and
associated errors and warnings. |
ValidationExceptionImpl(Throwable cause) |
ValidationExceptionImpl(Throwable cause,
List<String> errors,
List<String> warnings)
Constructs a
ValidationException with a specified summary message of the failure and
associated errors and warnings. |
Modifier and Type | Method and Description |
---|---|
List<String> |
getErrors() |
List<String> |
getWarnings() |
void |
setErrors(List<String> errors) |
void |
setWarnings(List<String> warnings) |
toString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public ValidationExceptionImpl()
public ValidationExceptionImpl(String summaryMessage)
public ValidationExceptionImpl(String summaryMessage, List<String> errors, List<String> warnings)
ValidationException
with a specified summary message of the failure and
associated errors and warnings.summaryMessage
- summarizes why the validation operation failederrors
- list of human readable error messageswarnings
- list of human readable warning messagespublic ValidationExceptionImpl(Throwable cause)
public ValidationExceptionImpl(Throwable cause, List<String> errors, List<String> warnings)
ValidationException
with a specified summary message of the failure and
associated errors and warnings.cause
- the cause of why the validation operation failederrors
- list of human readable error messageswarnings
- list of human readable warning messagespublic ValidationExceptionImpl(String summaryMessage, Throwable cause, List<String> errors, List<String> warnings)
ValidationException
with a specified summary message of the failure and
associated errors and warnings.summaryMessage
- summarizes why the validation operation failedcause
- the cause of why the validation operation failederrors
- list of human readable error messageswarnings
- list of human readable warning messagespublic List<String> getErrors()
getErrors
in class ValidationException
public void setErrors(List<String> errors)
errors
- Applies a list of all the error messages that have caused validation to fail. The
error messages should be human-readable plain text.public List<String> getWarnings()
getWarnings
in class ValidationException
This work is licensed under a Creative Commons Attribution 4.0 International License.