Module is.codion.framework.domain
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
An exception used to indicate that an attribute value is invalid.
- See Also:
-
Constructor Summary
ConstructorDescriptionValidationException
(Attribute<?> attribute, Object value, String message) Instantiates a new ValidationException. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ValidationException
Instantiates a new ValidationException.- Parameters:
attribute
- the attribute of the value being validatedvalue
- the valuemessage
- the exception message
-
-
Method Details
-
attribute
- Returns:
- the value attribute
-
value
- Returns:
- the invalid value
-