java.security
Class AccessControlException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.SecurityException
java.security.AccessControlException
- All Implemented Interfaces:
- Serializable
public class AccessControlException
- extends SecurityException
This runtime exception is thrown when an access control check indicates that
access should not be granted.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
AccessControlException
public AccessControlException(String message)
- Constructs a new instance of this class with its walkback and message
filled in.
- Parameters:
message - String The detail message for the exception.
AccessControlException
public AccessControlException(String message,
Permission perm)
- Constructs a new instance of this class with its walkback, message and
associated permission all filled in.
- Parameters:
message - String The detail message for the exception.perm - Permission The failed permission.
getPermission
public Permission getPermission()
- Returns the receiver's permission.
- Returns:
- Permission the receiver's permission
Please submit a feedback, bug or feature