public class

ValidationFailureException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.atlassian.jira.util.ValidationFailureException

Class Overview

A validation exception is essentially a "throwable" error collection.

See Also

Summary

Public Constructors
ValidationFailureException(String message)
Constructs a new ValidationFailureException with a single error message.
ValidationFailureException(String message, Throwable throwable)
Constructs a new ValidationFailureException with a single error message and a cause.
ValidationFailureException(ErrorCollection errors)
Constructs a new ValidationFailureException initialised with a collection of errors.
ValidationFailureException(String message, ErrorCollection errors, Throwable throwable)
Constructs a new ValidationFailureException with an error message, a collection of errors, and a cause.
Public Methods
ErrorCollection errors()
Returns the validation errors.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public ValidationFailureException (String message)

Constructs a new ValidationFailureException with a single error message.

Parameters
message a String containing an error message

public ValidationFailureException (String message, Throwable throwable)

Constructs a new ValidationFailureException with a single error message and a cause.

Parameters
message a String containing an error message
throwable the Throwable that caused the validation failure

public ValidationFailureException (ErrorCollection errors)

Constructs a new ValidationFailureException initialised with a collection of errors.

Parameters
errors an ErrorCollection containing collection of validation errors

public ValidationFailureException (String message, ErrorCollection errors, Throwable throwable)

Constructs a new ValidationFailureException with an error message, a collection of errors, and a cause.

Parameters
message a String containing an error message
errors an ErrorCollection containing collection of validation errors
throwable the Throwable that caused the validation failure

Public Methods

public ErrorCollection errors ()

Returns the validation errors.

Returns
  • an ErrorCollection