Package app.YUP.exception
Class UnauthorizedAccessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
app.YUP.exception.UnauthorizedAccessException
- All Implemented Interfaces:
Serializable
Exception thrown when a user attempts to access a resource they do not have permission to access.
This class extends the
RuntimeException to provide unchecked exception capabilities.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnauthorizedAccessException(String message) Constructs a new UnauthorizedAccessException with the specified detail message.UnauthorizedAccessException(String message, Throwable cause) Constructs a new UnauthorizedAccessException with the specified detail message and cause.Constructs a new UnauthorizedAccessException 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
-
UnauthorizedAccessException
Constructs a new UnauthorizedAccessException with the specified detail message.- Parameters:
message- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.
-
UnauthorizedAccessException
Constructs a new UnauthorizedAccessException 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.)
-
UnauthorizedAccessException
Constructs a new UnauthorizedAccessException with the specified detail message and cause.- Parameters:
message- the detail message (which 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.)
-