Class ValidationException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ActionRequestValidationException, QueryValidationException

public class ValidationException extends IllegalArgumentException
Encapsulates an accumulation of validation errors
See Also:
Serialized Form
  • Constructor Details

    • ValidationException

      public ValidationException()
    • ValidationException

      public ValidationException(Throwable cause)
  • Method Details

    • addValidationError

      public final ValidationException addValidationError(String error)
      Add a new validation error to the accumulating validation errors
      Parameters:
      error - the error to add
    • addValidationErrors

      public final ValidationException addValidationErrors(Iterable<String> errors)
      Add a sequence of validation errors to the accumulating validation errors
      Parameters:
      errors - the errors to add
    • validationErrors

      public final List<String> validationErrors()
      Returns the validation errors accumulated
    • getMessage

      public final String getMessage()
      Overrides:
      getMessage in class Throwable