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