public abstract class ValidationException extends Exception
Constructor and Description |
---|
ValidationException()
Constructs a
ValidationException with no detailed message. |
ValidationException(String summaryMessage)
Constructs a
ValidationException with a specified summary message of the failure. |
ValidationException(String summaryMessage,
Throwable cause)
Constructs a
ValidationException with a specified summary message and cause of the
failure. |
ValidationException(Throwable cause)
Constructs a
ValidationException with a cause of the failure. |
Modifier and Type | Method and Description |
---|---|
abstract List<String> |
getErrors() |
abstract List<String> |
getWarnings() |
String |
toString()
Converts this exception into a String representation.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public ValidationException()
ValidationException
with no detailed message.public ValidationException(String summaryMessage)
ValidationException
with a specified summary message of the failure.summaryMessage
- summarizes why the validation operation failedpublic ValidationException(Throwable cause)
ValidationException
with a cause of the failure.cause
- the cause of why the validation operation failedpublic ValidationException(String summaryMessage, Throwable cause)
ValidationException
with a specified summary message and cause of the
failure.summaryMessage
- summarizes why the validation operation failedcause
- the cause of why the validation operation failedpublic abstract List<String> getErrors()
public abstract List<String> getWarnings()
This work is licensed under a Creative Commons Attribution 4.0 International License.