Class PermissionException

All Implemented Interfaces:
Serializable

public class PermissionException extends SecurityException
See Also:
  • Constructor Details

    • PermissionException

      public PermissionException(String s)
      Constructs an AccessControlException with the specified, detailed message.
      Parameters:
      s - the detail message.
    • PermissionException

      public PermissionException(String s, Permission p)
      Constructs an AccessControlException with the specified, detailed message, and the requested permission that caused the exception.
      Parameters:
      s - the detail message.
      p - the permission that caused the exception.
  • Method Details

    • getPermission

      public Permission getPermission()
      Gets the Permission object associated with this exception, or null if there was no corresponding Permission object.
      Returns:
      the Permission object.