加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090327210228/http://developer.android.com:80/reference/java/security/PrivilegedActionException.html
public class

PrivilegedActionException

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.security.PrivilegedActionException

Class Overview

Instances of this class are used to wrap exceptions which occur within privileged operations.

Summary

Public Constructors
PrivilegedActionException(Exception ex)
Constructs a new instance of this class with its exception filled in.
Public Methods
Throwable getCause()
Returns the cause of this Throwable, or null if there is no cause.
Exception getException()
Returns the exception which caused the receiver to be thrown.
String toString()
Returns a string containing a concise, human-readable description of the receiver.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public PrivilegedActionException (Exception ex)

Constructs a new instance of this class with its exception filled in.

Public Methods

public Throwable getCause ()

Returns the cause of this Throwable, or null if there is no cause.

Returns
  • Throwable The receiver's cause.

public Exception getException ()

Returns the exception which caused the receiver to be thrown.

Returns
  • exception

public String toString ()

Returns a string containing a concise, human-readable description of the receiver.

Returns
  • String a printable representation for the receiver.