public class PrivilegedActionException extends java.lang.Exception
AccessController.doPrivileged() method. It wraps the
actual exception thrown in the privileged code.| Constructor and Description |
|---|
PrivilegedActionException(java.lang.Exception e)
Create a new instance that wraps the specified
Exception. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getCause()
Gets the cause of this exception.
|
java.lang.Exception |
getException()
Get the underlying
Exception that caused this one. |
java.lang.String |
toString()
Convert this to a String.
|
public PrivilegedActionException(java.lang.Exception e)
Exception.e - the Exception to wrappublic java.lang.Exception getException()
Exception that caused this one. This
is a legacy method, the preferred way is getCause().public java.lang.Throwable getCause()
getCause in class java.lang.Throwablepublic java.lang.String toString()
toString in class java.lang.ThrowableObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)