public class AccessControlException extends SecurityException
AccessControlException is thrown if the access control infrastructure
denies protected access due to missing permissions.| Constructor and Description |
|---|
AccessControlException(String message)
Constructs a new instance of
AccessControlException with the
given message. |
AccessControlException(String message,
Permission perm)
Constructs a new instance of
AccessControlException with the
given message and the requested Permission which was not granted. |
| Modifier and Type | Method and Description |
|---|---|
Permission |
getPermission()
Returns the requested permission that caused this Exception or
null if there is no corresponding Permission. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AccessControlException(String message)
AccessControlException with the
given message.message - the detail message for this exception.public AccessControlException(String message, Permission perm)
AccessControlException with the
given message and the requested Permission which was not granted.message - the detail message for the exception.perm - the requested Permission which was not granted.public Permission getPermission()
null if there is no corresponding Permission.null.