- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.security.GeneralSecurityException
-
- java.security.cert.CertStoreException
-
- All Implemented Interfaces:
-
Serializable
public class CertStoreException extends GeneralSecurityException
一个例外,指出从CertStore检索证书和CRL的各种问题CertStore。A
CertStoreException提供对包装异常的支持。getCause方法返回引发此异常抛出的throwable(如果有)。并发访问
除非另有说明,否则此类中定义的方法不是线程安全的。 需要同时访问单个对象的多个线程应在其间同步并提供必要的锁定。 每个操作单独对象的多个线程不需要同步。
- 从以下版本开始:
- 1.4
- 另请参见:
-
CertStore, Serialized Form
-
-
构造方法摘要
构造方法 Constructor 描述 CertStoreException()创建CertStoreException与null作为其详细消息。CertStoreException(String msg)使用给定的详细信息创建一个CertStoreException。CertStoreException(String msg, Throwable cause)创建一个CertStoreException与指定的详细信息和原因。CertStoreException(Throwable cause)创建一个包裹指定的throwable的CertStoreException。
-
方法摘要
-
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
-
-
-
-
构造方法详细信息
-
CertStoreException
public CertStoreException()
创建一个CertStoreException作为其详细信息null。
-
CertStoreException
public CertStoreException(String msg)
使用给定的详细信息创建一个CertStoreException。 详细信息是描述这个特殊异常的String。- 参数
-
msg- 详细信息
-
CertStoreException
public CertStoreException(Throwable cause)
创建一个包裹指定的throwable的CertStoreException。 这允许将任何异常转换为CertStoreException,同时保留有关原因的信息,这可能对调试有用。 详细消息设置为(cause==null ? null : cause.toString())(其通常包含原因的类和详细消息)。- 参数
-
cause- 原因(保存以供getCause()方法稍后检索)。 (允许Anull值,并表示原因不存在或未知。)
-
CertStoreException
public CertStoreException(String msg, Throwable cause)
创建一个CertStoreException具有指定的详细信息和原因。- 参数
-
msg- 详细信息 -
cause- 原因(由getCause()方法保存供以后检索)。 (允许值为null,表示原因不存在或未知。)
-
-