Package java.lang
Class SecurityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.SecurityException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AccessControlException
public class SecurityException extends RuntimeException
Thrown when a security manager check fails.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SecurityException()Constructs a newSecurityExceptionthat includes the current stack trace.SecurityException(String detailMessage)Constructs a newSecurityExceptionwith the current stack trace and the specified detail message.SecurityException(String message, Throwable cause)Constructs a newSecurityExceptionwith the current stack trace, the specified detail message and the specified cause.SecurityException(Throwable cause)Constructs a newSecurityExceptionwith the current stack trace and the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SecurityException
public SecurityException()Constructs a newSecurityExceptionthat includes the current stack trace. -
SecurityException
Constructs a newSecurityExceptionwith the current stack trace and the specified detail message.- Parameters:
detailMessage- the detail message for this exception.
-
SecurityException
Constructs a newSecurityExceptionwith the current stack trace, the specified detail message and the specified cause.- Parameters:
message- the detail message for this exception.cause- the optional cause of this exception, may benull.- Since:
- 1.5
-
SecurityException
Constructs a newSecurityExceptionwith the current stack trace and the specified cause.- Parameters:
cause- the optional cause of this exception, may benull.- Since:
- 1.5
-