Module is.codion.framework.domain
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
is.codion.framework.domain.entity.exception.ValidationException
- All Implemented Interfaces:
Serializable
Specifies that one or more attribute values are invalid.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSpecifies an invalid attribute value -
Constructor Summary
ConstructorsConstructorDescriptionValidationException(Attribute<?> attribute, @Nullable Object value, String message) -
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
- Parameters:
attribute- the attributevalue- the invalid valuemessage- the message
-
ValidationException
- Parameters:
invalid- the invalid attributes- Throws:
IllegalArgumentException- in case the invalid attributes are not all from the same entity
-
-
Method Details
-
invalid
- Returns:
- the invalid attributes
-