- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.SecurityException
-
- All Implemented Interfaces:
-
Serializable
- 已知直接子类:
-
AccessControlException,RMISecurityException
public class SecurityException extends RuntimeException
由安全管理员抛出,表示安全违规。- 从以下版本开始:
- 1.0
- 另请参见:
-
SecurityManager, Serialized Form
-
-
构造方法摘要
构造方法 Constructor 描述 SecurityException()构造一个SecurityException,没有详细信息。SecurityException(String s)构造具有指定详细消息的SecurityException。SecurityException(String message, Throwable cause)创建一个SecurityException与指定的详细信息和原因。SecurityException(Throwable cause)创建SecurityException与指定的原因和详细消息(cause==null ? null : cause.toString())(它通常包含的类和详细消息cause)。
-
方法摘要
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
构造方法详细信息
-
SecurityException
public SecurityException()
构造一个SecurityException,没有详细信息。
-
SecurityException
public SecurityException(String s)
构造具有指定详细消息的SecurityException。- 参数
-
s- 详细信息。
-
SecurityException
public SecurityException(String message, Throwable cause)
创建一个SecurityException与指定的详细信息和原因。- 参数
-
message- 详细信息(保存以供稍后通过Throwable.getMessage()方法检索)。 -
cause- 原因(保存以供Throwable.getCause()方法后续检索)。 (允许Anull值,表示原因不存在或未知。) - 从以下版本开始:
- 1.5
-
SecurityException
public SecurityException(Throwable cause)
创建SecurityException与指定的原因和详细消息(cause==null ? null : cause.toString())(它通常包含的类和详细消息cause)。- 参数
-
cause- 原因(由Throwable.getCause()方法保存供以后检索)。 (Anull值是允许的,并且表明原因不存在或未知。) - 从以下版本开始:
- 1.5
-
-