FileDocCategorySizeDatePackage
AccessControlException.javaAPI DocAndroid 1.5 API2439Wed May 06 22:41:04 BST 2009java.security

AccessControlException

public class AccessControlException extends SecurityException
{@code AccessControlException} is thrown if the access control infrastructure denies protected access due to missing permissions.
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
private Permission
perm
Constructors Summary
public AccessControlException(String message)
Constructs a new instance of {@code AccessControlException} with the given message.

param
message the detail message for this exception.
since
Android 1.0

 // Named as demanded by Serialized Form.

                                           
       
        super(message);
    
public AccessControlException(String message, Permission perm)
Constructs a new instance of {@code AccessControlException} with the given message and the requested {@code Permission} which was not granted.

param
message the detail message for the exception.
param
perm the requested {@code Permission} which was not granted.
since
Android 1.0

        super(message);
        this.perm = perm;
    
Methods Summary
public java.security.PermissiongetPermission()
Returns the requested permission that caused this Exception or {@code null} if there is no corresponding {@code Permission}.

return
the requested permission that caused this Exception, maybe {@code null}.
since
Android 1.0

        return perm;