Skip to content

Class: CertificateError ​

Defined in: netconf/src/errors.ts:101

The TLS server's certificate wasn't trusted, didn't name the server, or didn't match the pin; or no trust was configured.

Extends ​

Constructors ​

Constructor ​

ts
new CertificateError(message, options?): CertificateError;

Defined in: netconf/src/errors.ts:31

Parameters ​

message ​

string

options? ​

NetconfErrorOptions

Returns ​

CertificateError

Inherited from ​

TransportError.constructor

Properties ​

code ​

ts
readonly code: "ERR_NETCONF_CERTIFICATE" = 'ERR_NETCONF_CERTIFICATE';

Defined in: netconf/src/errors.ts:104

Stable, machine-readable error code.

Overrides ​

TransportError.code


name ​

ts
name: string = 'CertificateError';

Defined in: netconf/src/errors.ts:103

Always 'CertificateError'.

Overrides ​

TransportError.name

Released under the MIT Licence.