|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.atlassian.jira.util.ValidationFailureException
public class ValidationFailureException
A validation exception is essentially a "throwable" error collection.
ErrorCollection,
Serialized Form| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
ErrorCollection |
errors()
Returns the validation errors. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ValidationFailureException(String message)
message - a String containing an error message
public 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 errors
public 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 failure| Method Detail |
|---|
public ErrorCollection errors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||