- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.security.GeneralSecurityException
-
- 实现的所有接口
-
Serializable
- 已知直接子类:
-
BadPaddingException,CertificateException,CertPathBuilderException,CertPathValidatorException,CertStoreException,CRLException,DigestException,ExemptionMechanismException,IllegalBlockSizeException,InvalidAlgorithmParameterException,InvalidKeySpecException,InvalidParameterSpecException,KeyException,KeyStoreException,LoginException,NoSuchAlgorithmException,NoSuchPaddingException,NoSuchProviderException,ShortBufferException,SignatureException,UnrecoverableEntryException
public class GeneralSecurityException extends 异常
GeneralSecurityException类是一个通用的安全性异常类,它为从中扩展的所有与安全性相关的异常类提供类型安全性。- 从以下版本开始:
- 1.2
- 另请参见:
- Serialized Form
-
-
构造方法摘要
构造方法 构造器 描述 GeneralSecurityException()构造一个没有详细消息的GeneralSecurityException。GeneralSecurityException(String msg)使用指定的详细消息构造GeneralSecurityException。GeneralSecurityException(String message, Throwable cause)创建具有指定详细消息和原因的GeneralSecurityException。GeneralSecurityException(Throwable cause)创建GeneralSecurityException与指定的原因和详细消息(cause==null ? null : cause.toString())(它通常包含的类和详细消息cause)。
-
方法摘要
-
-
-
构造方法详细信息
-
GeneralSecurityException
public GeneralSecurityException()
构造一个没有详细消息的GeneralSecurityException。
-
GeneralSecurityException
public GeneralSecurityException(String msg)
使用指定的详细消息构造GeneralSecurityException。 详细消息是描述此特定异常的String。- 参数
-
msg- 详细信息。
-
GeneralSecurityException
public GeneralSecurityException(String message, Throwable cause)
使用指定的详细消息和原因创建GeneralSecurityException。- 参数
-
message- 详细消息(保存以供以后通过Throwable.getMessage()方法检索)。 -
cause- 原因(保存以供以后通过Throwable.getCause()方法检索)。 (允许值为null,表示原因不存在或未知。) - 从以下版本开始:
- 1.5
-
GeneralSecurityException
public GeneralSecurityException(Throwable cause)
创建GeneralSecurityException与指定的原因和详细消息(cause==null ? null : cause.toString())(它通常包含的类和详细消息cause)。- 参数
-
cause- 原因(保存以供以后通过Throwable.getCause()方法检索)。 (允许值为null,表示原因不存在或未知。) - 从以下版本开始:
- 1.5
-
-