java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.SecurityException
public class SecurityException
     由安全管理器抛出的异常,指示存在安全侵犯。
SecurityManager, 
    序列化表格
   | 构造方法摘要 | |
|---|---|
| SecurityException()构造不带详细消息的 SecurityException。 | |
| SecurityException(String s)构造带指定详细消息的 SecurityException。 | |
| SecurityException(String message, Throwable cause)创建带指定详细消息和原因的 SecurityException。 | |
| SecurityException(Throwable cause)创建一个 SecurityException,它带有指定的原因和 (cause==null ? null :cause.toString()) 的详细消息(通常包含该类和 cause 的详细消息)。 | |
| 方法摘要 | 
|---|
| 从类 java.lang.Throwable 继承的方法 | 
|---|
| fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
| 从类 java.lang.Object 继承的方法 | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| 构造方法详细信息 | 
|---|
public SecurityException()
SecurityException。 
    
public SecurityException(String s)
SecurityException。 
    
s - 详细消息。
     public SecurityException(String message, Throwable cause)
SecurityException。 
    
message - 详细消息(保存此消息,以便以后通过 
      Throwable.getMessage() 方法获取它)。
     cause - 原因(保存此原因,以便以后通过 
      Throwable.getCause() 方法获取它)。(允许使用 
      null 值,这表明原因不存在或是未知的。)
     public SecurityException(Throwable cause)
SecurityException,它带有指定的原因和 
    (cause==null ? null :cause.toString()) 的详细消息(通常包含该类和 
    cause 的详细消息)。 
    
cause - 原因(保存此原因,以便以后通过 
      Throwable.getCause() 方法获取它)。(允许使用 
      null 值,这表明原因不存在或是未知的。)