Module java.base
Package javax.net.ssl

Class SSLException

所有已实现的接口:
Serializable
直接已知的子类:
SSLHandshakeException, SSLKeyException, SSLPeerUnverifiedException, SSLProtocolException

public class SSLException extends IOException
表示SSL子系统检测到的某种错误。此类是由失败的SSL相关操作产生的异常的通用类。
自从:
1.4
参见:
  • Constructor Details

    • SSLException

      public SSLException(String reason)
      构造一个报告SSL子系统发现的错误的异常。
      参数:
      reason - 描述问题。
    • SSLException

      public SSLException(String message, Throwable cause)
      使用指定的详细消息和原因创建一个SSLException
      参数:
      message - 详细消息(稍后可通过Throwable.getMessage()方法检索)。
      cause - 原因(稍后可通过Throwable.getCause()方法检索)。 (允许null值,并表示原因不存在或未知。)
      自从:
      1.5
    • SSLException

      public SSLException(Throwable cause)
      使用指定的原因和详细消息(cause==null ? null : cause.toString())(通常包含cause的类和详细消息)创建一个SSLException
      参数:
      cause - 原因(稍后可通过Throwable.getCause()方法检索)。 (允许null值,并表示原因不存在或未知。)
      自从:
      1.5