Class 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:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int errorCode()
      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
    • Constructor Detail

      • 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 Detail

      • errorCode

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