public interface ValidationFailure
A failed validation.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the exception corresponding to the validation failure.
    Returns the message corresponding to the validation failure.
    Class<? extends Throwable>
    Returns the type of exception that is associated with this failure.
  • Method Details

    • getMessage

      String getMessage()
      Returns the message corresponding to the validation failure.
      Returns:
      the message corresponding to the validation failure
    • getType

      Class<? extends Throwable> getType()
      Returns the type of exception that is associated with this failure.
      Returns:
      the type of exception that is associated with this failure
    • getException

      Throwable getException()
      Returns the exception corresponding to the validation failure.
      Returns:
      a RuntimeException or Error