Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.security

Class PrivilegedActionException

java.lang.Object
|
+--java.lang.Throwable
   |
   +--java.lang.Exception
      |
      +--java.security.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.

Authors:See Also:

Constructor Summary

PrivilegedActionException(java.lang.Exception e)

Create a new instance that wraps the specified Exception.

Method Summary

java.lang.ThrowablegetCause()

Gets the cause of this exception.
java.lang.ExceptiongetException()

Get the underlying Exception that caused this one.
java.lang.StringtoString()

Convert this to a String.

Constructor Details

PrivilegedActionException

public PrivilegedActionException(java.lang.Exception e)

Create a new instance that wraps the specified Exception.

Parameters:


Method Details

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: