Build 1.0_r1(from source)

java.security
Class AccessControlException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.SecurityException
                  extended by 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

Constructor Summary
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.
 
Method Summary
 Permission getPermission()
          Returns the receiver's permission.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

getPermission

public Permission getPermission()
Returns the receiver's permission.

Returns:
Permission the receiver's permission

Build 1.0_r1(from source)

Please submit a feedback, bug or feature