Skip to content

Class: HostKeyError ​

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

The server's host key didn't match, or no host-key policy was given.

Extends ​

Constructors ​

Constructor ​

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

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

Parameters ​

message ​

string

options? ​

NetconfErrorOptions

Returns ​

HostKeyError

Inherited from ​

TransportError.constructor

Properties ​

code ​

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

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

Stable, machine-readable error code.

Overrides ​

TransportError.code


name ​

ts
name: string = 'HostKeyError';

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

Always 'HostKeyError'.

Overrides ​

TransportError.name

Released under the MIT Licence.