java.security

Class PrivilegedActionException

public class PrivilegedActionException extends 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.

See Also: PrivilegedExceptionAction doPrivileged AccessController

UNKNOWN: updated to 1.4

Constructor Summary
PrivilegedActionException(Exception e)
Create a new instance that wraps the specified Exception.
Method Summary
ThrowablegetCause()
Gets the cause of this exception.
ExceptiongetException()
Get the underlying Exception that caused this one.
StringtoString()
Convert this to a String.

Constructor Detail

PrivilegedActionException

public PrivilegedActionException(Exception e)
Create a new instance that wraps the specified Exception.

Parameters: e the Exception to wrap

Method Detail

getCause

public Throwable getCause()
Gets the cause of this exception.

Returns: the cause

Since: 1.4

getException

public Exception getException()
Get the underlying Exception that caused this one. This is a legacy method, the preferred way is {@link #getCause()}.

Returns: the cause

toString

public String toString()
Convert this to a String.

Returns: the string representation