Class UniquenessConstraintViolationException

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

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

    • UniquenessConstraintViolationException

      public UniquenessConstraintViolationException()
      Default constructor.
    • UniquenessConstraintViolationException

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

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