Class UnauthorizedAccessException

All Implemented Interfaces:
Serializable

public class UnauthorizedAccessException extends RuntimeException
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 Details

    • UnauthorizedAccessException

      public UnauthorizedAccessException(String message)
      Constructs a new UnauthorizedAccessException with the specified detail message.
      Parameters:
      message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
    • UnauthorizedAccessException

      public UnauthorizedAccessException(Throwable cause)
      Constructs a new UnauthorizedAccessException with the specified cause.
      Parameters:
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
    • UnauthorizedAccessException

      public UnauthorizedAccessException(String message, Throwable cause)
      Constructs a new UnauthorizedAccessException with the specified detail message and cause.
      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)