Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.security

Class AccessControlException

java.lang.Object
|
+--java.lang.Throwable
   |
   +--java.lang.Exception
      |
      +--java.lang.RuntimeException
         |
         +--java.lang.SecurityException
            |
            +--java.security.AccessControlException


public class AccessControlException

extends SecurityException

This exception is thrown when the AccessController denies an attempt to perform an operation. This often keeps track of the permission that was not granted.

Author:See Also:

Constructor Summary

AccessControlException(java.lang.String msg)

Create a new instance with a descriptive error message, and a null Permission object.
AccessControlException(java.lang.String msg, java.security.Permission perm)

Create a new instance with a descriptive error message and an associated Permission object.

Method Summary

java.security.PermissiongetPermission()

This method returns the Permission object that caused this exception to be thrown.

Constructor Details

AccessControlException

public AccessControlException(java.lang.String msg)

Create a new instance with a descriptive error message, and a null Permission object.

Parameters:


AccessControlException

public AccessControlException(java.lang.String msg, java.security.Permission perm)

Create a new instance with a descriptive error message and an associated Permission object.

Parameters:


Method Details

getPermission

public Permission getPermission()

This method returns the Permission object that caused this exception to be thrown.

Returns: