java.security
Class PrivilegedActionException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.security.PrivilegedActionException
public class
PrivilegedActionExceptionextends
Exception This exception is thrown when an exception is thrown during a
privileged action being performed with the
AccessController.doPrivileged()
method. It wraps the
actual exception thrown in the privileged code.
Authors:- Aaron M. Renn <arenn@urbanophile.com>
- Eric Blake <ebb9@email.byu.edu>
See Also:
PrivilegedActionException
public PrivilegedActionException(java.lang.Exception e)
Create a new instance that wraps the specified Exception
.
Parameters:
getCause
public Throwable getCause()
Gets the cause of this exception.
Since:Returns:
getException
public Exception getException()
Get the underlying Exception
that caused this one. This
is a legacy method, the preferred way is #getCause().
Returns:
toString
public String toString()
Convert this to a String.
Returns:
- the string representation
AccessController.doPrivileged()
method. It wraps the actual exception thrown in the privileged code.