Android
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()
Returns 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()

Returns the receiver's permission.

Returns

  • Permission the receiver's permission
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56