Module is.codion.framework.domain
Class EntityValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
is.codion.framework.domain.entity.exception.EntityValidationException
- All Implemented Interfaces:
Serializable
Indicates an invalid entity, either due to one or more invalid
attribute values, accessible via
attributes() or a general validation failure.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EntityValidationException
- Parameters:
message- the message
-
EntityValidationException
- Parameters:
exception- the attribute validation exception
-
EntityValidationException
- Parameters:
exceptions- the invalid attribute exceptions- Throws:
IllegalArgumentException- in case the attribute exceptions are not all from the same entity
-
-
Method Details
-
attributes
- Returns:
- the invalid attributes, may be empty in case of a genaral validation exception
-