Class PermissionException

    • Constructor Detail

      • 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 Detail

      • 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.