Top Description Fields Constructors Methods
io.netty5.handler.ssl

public final Class OpenSslCertificateException

extends CertificateException
Class Inheritance
Imports
io.netty.internal.tcnative.CertificateVerifier, 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.

Field Summary

Modifier and TypeField and Description
private final int
private static final long

Constructor Summary

AccessConstructor and Description
public
OpenSslCertificateException(int errorCode)

Construct a new exception with the error code.

public
OpenSslCertificateException(String msg, int errorCode)

Construct a new exception with the msg and error code .

public
OpenSslCertificateException(String message, Throwable cause, int errorCode)

Construct a new exception with the msg, cause and error code .

public
OpenSslCertificateException(Throwable cause, int errorCode)

Construct a new exception with the cause and error code .

Method Summary

Modifier and TypeMethod and Description
private static int
checkErrorCode(int errorCode)

public int
errorCode()

Return the error code to use.

Field Detail

errorCodeback to summary
private final int errorCode
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.cert.CertificateException.serialVersionUID.

Constructor Detail

OpenSslCertificateExceptionback to summary
public OpenSslCertificateException(int errorCode)

Construct a new exception with the error code.

OpenSslCertificateExceptionback to summary
public OpenSslCertificateException(String msg, int errorCode)

Construct a new exception with the msg and error code .

OpenSslCertificateExceptionback to summary
public OpenSslCertificateException(String message, Throwable cause, int errorCode)

Construct a new exception with the msg, cause and error code .

OpenSslCertificateExceptionback to summary
public OpenSslCertificateException(Throwable cause, int errorCode)

Construct a new exception with the cause and error code .

Method Detail

checkErrorCodeback to summary
private static int checkErrorCode(int errorCode)
errorCodeback to summary
public int errorCode()

Return the error code to use.