Class InvalidPermissionException

All Implemented Interfaces:
Serializable

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

    • InvalidPermissionException

      public InvalidPermissionException(String message)
      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

      public InvalidPermissionException(Throwable cause)
      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

      public InvalidPermissionException(String message, Throwable cause)
      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.