java.security
public class AccessControlException extends SecurityException
AccessController
denies
an attempt to perform an operation. This often keeps track of the
permission that was not granted.
See Also: AccessController
UNKNOWN: updated to 1.4
Constructor Summary | |
---|---|
AccessControlException(String msg)
Create a new instance with a descriptive error message, and a null
Permission object.
| |
AccessControlException(String msg, Permission perm)
Create a new instance with a descriptive error message and an associated
Permission object.
|
Method Summary | |
---|---|
Permission | getPermission()
This method returns the Permission object that caused
this exception to be thrown.
|
Permission
object.
Parameters: msg the descriptive error message
Permission
object.
Parameters: msg the descriptive error message perm the permission that caused this
Permission
object that caused
this exception to be thrown.
Returns: the denied permission, or null