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