Class InstanceAlreadyExistsException

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

public class InstanceAlreadyExistsException extends RuntimeException
Thrown when you try to create or insert an already existing entity in the repository. This exception is a RuntimeException version of javax.management.InstanceAlreadyExistsException.
See Also:
  • Constructor Details

    • InstanceAlreadyExistsException

      public InstanceAlreadyExistsException()
      Default constructor.
    • InstanceAlreadyExistsException

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

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