Class OpenSslCertificateException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.security.GeneralSecurityException
java.security.cert.CertificateException
io.netty.handler.ssl.OpenSslCertificateException
All Implemented Interfaces:
java.io.Serializable

public final class OpenSslCertificateException extends java.security.cert.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 Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
     
    private static final long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct a new exception with the error code.
    OpenSslCertificateException(java.lang.String msg, int errorCode)
    Construct a new exception with the msg and error code .
    OpenSslCertificateException(java.lang.String message, java.lang.Throwable cause, int errorCode)
    Construct a new exception with the msg, cause and error code .
    OpenSslCertificateException(java.lang.Throwable cause, int errorCode)
    Construct a new exception with the cause and error code .
  • Method Summary

    Modifier and Type
    Method
    Description
    private static int
    checkErrorCode(int errorCode)
     
    int
    Return the error code to use.

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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(java.lang.String msg, int errorCode)
      Construct a new exception with the msg and error code .
    • OpenSslCertificateException

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

      public OpenSslCertificateException(java.lang.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)