- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.security.GeneralSecurityException
-
- java.security.cert.CertificateException
-
- io.netty5.handler.ssl.OpenSslCertificateException
-
- All Implemented Interfaces:
Serializable
public final class OpenSslCertificateException extends CertificateException
A specialCertificateException
which allows to specify which error code is included in the SSL Record. This only work whenSslProvider.OPENSSL
orSslProvider.OPENSSL_REFCNT
is used.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpenSslCertificateException(int errorCode)
Construct a new exception with the error code.OpenSslCertificateException(String msg, int errorCode)
Construct a new exception with the msg and error code .OpenSslCertificateException(String message, Throwable cause, int errorCode)
Construct a new exception with the msg, cause and error code .OpenSslCertificateException(Throwable cause, int errorCode)
Construct a new exception with the cause and error code .
-
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
-
-
-
-
Constructor Detail
-
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 Detail
-
errorCode
public int errorCode()
Return the error code to use.
-
-