Module java.base
Package java.security

Class PrivilegedActionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.security.PrivilegedActionException
All Implemented Interfaces:
Serializable

public class PrivilegedActionException extends Exception
This exception is thrown by doPrivileged(PrivilegedExceptionAction) and doPrivileged(PrivilegedExceptionAction, AccessControlContext context) to indicate that the action being performed threw a checked exception. The exception thrown by the action can be obtained by calling the getException method. In effect, an PrivilegedActionException is a "wrapper" for an exception thrown by a privileged action.
Since:
1.2
See Also: