Class InstanceAlreadyExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.marcopaglio.booking.exception.InstanceAlreadyExistsException
- All Implemented Interfaces:
Serializable
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.-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.InstanceAlreadyExistsException(String errorMessage) Constructs aInstanceAlreadyExistsExceptionwith the specified detail message.InstanceAlreadyExistsException(String message, Throwable cause) Constructs aInstanceAlreadyExistsExceptionwith the specified detail message and the cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InstanceAlreadyExistsException
public InstanceAlreadyExistsException()Default constructor. -
InstanceAlreadyExistsException
Constructs aInstanceAlreadyExistsExceptionwith the specified detail message.- Parameters:
errorMessage- specifies the error message.
-
InstanceAlreadyExistsException
Constructs aInstanceAlreadyExistsExceptionwith the specified detail message and the cause.- Parameters:
message- specifies the error message.cause- the cause of the exception.
-