Class OpenSslCertificateException

All Implemented Interfaces:
Serializable

public final class OpenSslCertificateException extends CertificateException
A special CertificateException which allows to specify which error code is included in the SSL Record. This only work when SslProvider.OPENSSL or SslProvider.OPENSSL_REFCNT is used.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • errorCode

      private final int errorCode
  • Constructor Details

    • OpenSslCertificateException

      public OpenSslCertificateException(int errorCode)
      Construct a new exception with the error code.
    • OpenSslCertificateException

      public OpenSslCertificateException(String msg, int errorCode)
      Construct a new exception with the msg and error code .
    • OpenSslCertificateException

      public OpenSslCertificateException(String message, Throwable cause, int errorCode)
      Construct a new exception with the msg, cause and error code .
    • OpenSslCertificateException

      public OpenSslCertificateException(Throwable cause, int errorCode)
      Construct a new exception with the cause and error code .
  • Method Details

    • errorCode

      public int errorCode()
      Return the error code to use.
    • checkErrorCode

      private static int checkErrorCode(int errorCode)