Class InstanceNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.marcopaglio.booking.exception.InstanceNotFoundException
- All Implemented Interfaces:
Serializable
Thrown when you try to update or remove an entity that does not exist in the repository.
This exception is a
RuntimeException
version of
javax.management.InstanceNotFoundException
.-
Constructor Summary
ConstructorDescriptionDefault constructor.InstanceNotFoundException
(String errorMessage) Constructs aInstanceNotFoundException
with the specified detail message.InstanceNotFoundException
(String message, Throwable cause) Constructs aInstanceNotFoundException
with 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
-
InstanceNotFoundException
public InstanceNotFoundException()Default constructor. -
InstanceNotFoundException
Constructs aInstanceNotFoundException
with the specified detail message.- Parameters:
errorMessage
- specifies the error message.
-
InstanceNotFoundException
Constructs aInstanceNotFoundException
with the specified detail message and the cause.- Parameters:
message
- specifies the error message.cause
- the cause of the exception.
-