Class InvalidEntityException

All Implemented Interfaces:
Serializable

public class InvalidEntityException extends ValidationException
Exception thrown when any JPA entity fails bean validation.
See Also:
  • 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 entity
      entityViolationType - type of violation found
      message - message to be associated to the violation
    • InvalidEntityException

      public InvalidEntityException(String entityClassSimpleName, Set<ConstraintViolation<Object>> violations)
      Constructs a map of violations out of given ConstraintViolation set.
      Parameters:
      entityClassSimpleName - simple class name of invalid entity
      violations - as returned by bean validation
  • Method Details