Class ValidationException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ItemValidationException, LengthValidationException, NullValidationException, RangeValidationException

public class ValidationException extends IllegalArgumentException
An exception used to indicate that an attribute value is invalid.
See Also:
  • Constructor Details

    • ValidationException

      public ValidationException(Attribute<?> attribute, @Nullable Object value, String message)
      Instantiates a new ValidationException.
      Parameters:
      attribute - the attribute of the value being validated
      value - the value
      message - the exception message
  • Method Details

    • attribute

      public final Attribute<?> attribute()
      Returns:
      the value attribute
    • value

      public final @Nullable Object value()
      Returns:
      the invalid value