PrivilegedActionException


PrivilegedActionException java.security

Java 1.2 serializable checked

This exception class is a wrapper around an arbitrary Exception thrown by a PrivilegedExceptionAction executed by the AccessController.doPrivileged( ) method. Use getException( ) to obtain the wrapped Exception object. Or, in Java 1.4 and later, use the more general getCause( ) method.

Figure 14-31. java.security.PrivilegedActionException

 public class  PrivilegedActionException  extends Exception {  // Public Constructors  public  PrivilegedActionException  (Exception  exception  );  // Public Instance Methods  public Exception  getException  ( );  // Public Methods Overriding Throwable   1.4  public Throwable  getCause  ( );  1.3  public String  toString  ( );   } 

Thrown By

AccessController.doPrivileged( ) , javax.security.auth.Subject.{doAs( ) , doAsPrivileged( )}



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net