Class InvalidEntityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.validation.ValidationException
org.apache.syncope.core.persistence.api.attrvalue.InvalidEntityException
- All Implemented Interfaces:
Serializable
Exception thrown when any JPA entity fails bean validation.
- See Also:
-
Constructor Summary
ConstructorDescriptionInvalidEntityException
(Class<?> entityClass, EntityViolationType entityViolationType, String message) Constructs a singleton map of violations from given parameters.InvalidEntityException
(String entityClassSimpleName, Set<ConstraintViolation<Object>> violations) Constructs a map of violations out of givenConstraintViolation
set. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidEntityException
public InvalidEntityException(Class<?> entityClass, EntityViolationType entityViolationType, String message) Constructs a singleton map of violations from given parameters.- Parameters:
entityClass
- class of invalid entityentityViolationType
- type of violation foundmessage
- message to be associated to the violation
-
InvalidEntityException
public InvalidEntityException(String entityClassSimpleName, Set<ConstraintViolation<Object>> violations) Constructs a map of violations out of givenConstraintViolation
set.- Parameters:
entityClassSimpleName
- simple class name of invalid entityviolations
- as returned by bean validation
-
-
Method Details
-
hasViolation
-
getEntityClassSimpleName
-
getViolations
-
getMessage
- Overrides:
getMessage
in classThrowable
-