|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.security.PrivilegedActionException
public class PrivilegedActionException
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.
PrivilegedExceptionAction,
AccessController.doPrivileged(PrivilegedExceptionAction),
AccessController.doPrivileged(PrivilegedExceptionAction, AccessControlContext),
Serialized Form| Constructor Summary | |
|---|---|
PrivilegedActionException(Exception e)
Create a new instance that wraps the specified Exception. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PrivilegedActionException(Exception e)
Exception.
e - the Exception to wrap| Method Detail |
|---|
public Exception getException()
Exception that caused this one. This
is a legacy method, the preferred way is getCause().
public Throwable getCause()
getCause in class Throwablepublic String toString()
toString in class ThrowableObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||