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
ConstructorsConstructorDescriptionInvalidEntityException(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 givenConstraintViolationset. -
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 givenConstraintViolationset.- Parameters:
entityClassSimpleName- simple class name of invalid entityviolations- as returned by bean validation
-
-
Method Details
-
hasViolation
-
getEntityClassSimpleName
-
getViolations
-
getMessage
- Overrides:
getMessagein classThrowable
-