Class ValidationException

All Implemented Interfaces:
Serializable

public final class ValidationException extends RuntimeException
Author:
Pedro Igor
See Also:
  • Constructor Details

  • Method Details

    • getErrors

      public List<ValidationException.Error> getErrors()
    • hasError

      public boolean hasError(String... types)
    • isAttributeOnError

      public boolean isAttributeOnError(String... name)
      Checks if there are validation errors related to the attribute with the given name.
      Parameters:
      name -
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Throwable
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • getStatusCode

      public jakarta.ws.rs.core.Response.Status getStatusCode()