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