Class NotNullConstraintViolationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.marcopaglio.booking.exception.NotNullConstraintViolationException
All Implemented Interfaces:
Serializable

public class NotNullConstraintViolationException extends RuntimeException
Thrown when you try to insert an entity that violates not-null constraints in the repository. This exception is a RuntimeException.
See Also:
  • Constructor Details

    • NotNullConstraintViolationException

      public NotNullConstraintViolationException()
      Default constructor.
    • NotNullConstraintViolationException

      public NotNullConstraintViolationException(String errorMessage)
      Constructs an NotNullConstraintViolationException with the specified detail message.
      Parameters:
      errorMessage - specifies the error message.
    • NotNullConstraintViolationException

      public NotNullConstraintViolationException(String message, Throwable cause)
      Constructs a NotNullConstraintViolationException with the specified detail message and the cause.
      Parameters:
      message - specifies the error message.
      cause - the cause of the exception.