Package app.YUP.exception
Class InvalidPermissionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
app.YUP.exception.InvalidPermissionException
- All Implemented Interfaces:
Serializable
This class represents a custom exception that is thrown when a user tries to perform an action they do not have permission for.
It extends the RuntimeException class, meaning it is an unchecked exception.
- Version:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidPermissionException(String message) Constructs a new InvalidPermissionException with the specified detail message.InvalidPermissionException(String message, Throwable cause) Constructs a new InvalidPermissionException with the specified detail message and cause.Constructs a new InvalidPermissionException 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
-
InvalidPermissionException
Constructs a new InvalidPermissionException with the specified detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.- Parameters:
message- the detail message.
-
InvalidPermissionException
Constructs a new InvalidPermissionException with the specified cause. The cause is saved for later retrieval by the Throwable.getCause() method. A null value is permitted, and indicates that the cause is nonexistent or unknown.- Parameters:
cause- the cause (which is saved for later retrieval by the Throwable.getCause() method).
-
InvalidPermissionException
Constructs a new InvalidPermissionException with the specified detail message and cause. The detail message is saved for later retrieval by the Throwable.getMessage() method. The cause is saved for later retrieval by the Throwable.getCause() method. A null value is permitted, and indicates that the cause is nonexistent or unknown.- Parameters:
message- the detail message.cause- the cause.
-