Class ValidationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
is.codion.framework.domain.entity.exception.ValidationException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ItemValidationException, LengthValidationException, NullValidationException, RangeValidationException

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

    • ValidationException

      public ValidationException(Attribute<?> attribute, 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 Object value()
      Returns:
      the invalid value