Package com.atlassian.jira.util
Class ValidationFailureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.atlassian.jira.util.ValidationFailureException
- All Implemented Interfaces:
Serializable
A validation exception is essentially a "throwable" error collection.
- Since:
- v4.3
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs 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. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ValidationFailureException
Constructs a new ValidationFailureException with a single error message.- Parameters:
message
- a String containing an error message
-
ValidationFailureException
Constructs a new ValidationFailureException with a single error message and a cause.- Parameters:
message
- a String containing an error messagethrowable
- the Throwable that caused the validation failure
-
ValidationFailureException
Constructs a new ValidationFailureException initialised with a collection of errors.- Parameters:
errors
- an ErrorCollection containing collection of validation errors
-
ValidationFailureException
Constructs a new ValidationFailureException with an error message, a collection of errors, and a cause.- Parameters:
message
- a String containing an error messageerrors
- an ErrorCollection containing collection of validation errorsthrowable
- the Throwable that caused the validation failure
-
-
Method Details
-
errors
Returns the validation errors.- Returns:
- an ErrorCollection
-