Class EntityValidationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
is.codion.framework.domain.entity.exception.EntityValidationException
All Implemented Interfaces:
Serializable

public final class EntityValidationException extends Exception
Indicates an invalid entity, either due to one or more invalid attribute values, accessible via attributes() or a general validation failure.
See Also:
  • Constructor Details

    • EntityValidationException

      public EntityValidationException(String message)
      Parameters:
      message - the message
    • EntityValidationException

      public EntityValidationException(AttributeValidationException exception)
      Parameters:
      exception - the attribute validation exception
    • EntityValidationException

      public EntityValidationException(Collection<AttributeValidationException> exceptions)
      Parameters:
      exceptions - the invalid attribute exceptions
      Throws:
      IllegalArgumentException - in case the attribute exceptions are not all from the same entity
  • Method Details