English | Site Directory

Android - An Open Handset Alliance Project

java.security
public class

java.security.AccessControlException

java.lang.Object
java.lang.Throwable Serializable
java.lang.Exception
java.lang.RuntimeException
java.lang.SecurityException
java.security.AccessControlException

This runtime exception is thrown when an access control check indicates that access should not be granted.

Summary

Public Constructors

          AccessControlException(String message)
Constructs a new instance of this class with its walkback and message filled in.
          AccessControlException(String message, Permission perm)
Constructs a new instance of this class with its walkback, message and associated permission all filled in.

Public Methods

        Permission  getPermission()
Answers the receiver's permission.
Methods inherited from class java.lang.Throwable
Methods inherited from class java.lang.Object

Details

Public Constructors

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.

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.

Public Methods

public Permission getPermission()

Answers the receiver's permission.

Returns

  • Permission the receiver's permission
Build m5-rc15i - 10 Jun 2008 13:54