public class java.lang
SecurityException


Show All Login
Java SE 6
  
Extends: Throwable > Exception > RuntimeException
Extended by: AccessControlException, RMISecurityException
Details
Thrown by the security manager to indicate a security violation.
version1.17, 11/17/05
sinceJDK1.0
See also java.lang.SecurityManager

Constructors
public SecurityException()
Constructs a SecurityException with no detail message.
public SecurityException(String s) Details
Constructs a SecurityException with the specified detail message.
sthe detail message.
public SecurityException(String message, Throwable cause) Details
Creates a SecurityException with the specified detail message and cause.
messagethe detail message (which is saved for later retrieval by the #getMessage() method).
causethe cause (which is saved for later retrieval by the #getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
since1.5
public SecurityException(Throwable cause) Details
Creates a SecurityException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
causethe cause (which is saved for later retrieval by the #getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
since1.5