public class ValidationFailureException extends RuntimeException
ErrorCollection,
Serialized Form| Constructor and Description |
|---|
ValidationFailureException(ErrorCollection errors)
Constructs a new ValidationFailureException initialised with a collection of errors.
|
ValidationFailureException(String message)
Constructs a new ValidationFailureException with a single error message.
|
ValidationFailureException(String message,
ErrorCollection errors,
Throwable throwable)
Constructs a new ValidationFailureException with an error message, a collection of errors, and a cause.
|
ValidationFailureException(String message,
Throwable throwable)
Constructs a new ValidationFailureException with a single error message and a cause.
|
| Modifier and Type | Method and Description |
|---|---|
ErrorCollection |
errors()
Returns the validation errors.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ValidationFailureException(String message)
message - a String containing an error messagepublic ValidationFailureException(String message, Throwable throwable)
message - a String containing an error messagethrowable - the Throwable that caused the validation failurepublic ValidationFailureException(ErrorCollection errors)
errors - an ErrorCollection containing collection of validation errorspublic ValidationFailureException(String message, ErrorCollection errors, Throwable throwable)
message - a String containing an error messageerrors - an ErrorCollection containing collection of validation errorsthrowable - the Throwable that caused the validation failurepublic ErrorCollection errors()
Copyright © 2002-2018 Atlassian. All Rights Reserved.