Package app.YUP.exception
Class ItemAlreadyExistException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
app.YUP.exception.ItemAlreadyExistException
- All Implemented Interfaces:
Serializable
Custom exception class for handling scenarios where a cookie is not found.
Extends the
RuntimeException to allow unchecked exceptions.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionItemAlreadyExistException(String message) Constructs a new CookieNotFoundException with the specified detail message.ItemAlreadyExistException(String message, Throwable cause) Constructs a new CookieNotFoundException with the specified detail message and cause.Constructs a new CookieNotFoundException with the specified 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
-
ItemAlreadyExistException
Constructs a new CookieNotFoundException with the specified detail message.- Parameters:
message- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.
-
ItemAlreadyExistException
Constructs a new CookieNotFoundException with the specified cause.- Parameters:
cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
ItemAlreadyExistException
Constructs a new CookieNotFoundException with the specified detail message and cause.- Parameters:
message- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-