Skip to content

Class: NetconfError ​

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

Base class of every error @node-net/netconf raises when a call with well-formed arguments fails, through any entry point (YANG data errors included).

Programming errors are deliberately outside it, so catching NetconfError never hides a bug: malformed arguments and API misuse throw TypeError, out-of-range values RangeError. An error thrown by the caller's own code (a transaction callback, a keyboard-interactive handler, a secret function) reaches the caller unchanged, or as the cause of the error that reports it. See Errors.

Extends ​

  • Error

Extended by ​

Constructors ​

Constructor ​

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

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

Parameters ​

message ​

string

options? ​

NetconfErrorOptions

Returns ​

NetconfError

Overrides ​

Error.constructor

Properties ​

code ​

ts
readonly code: string = 'ERR_NETCONF';

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

Stable, machine-readable error code.


name ​

ts
name: string = 'NetconfError';

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

Always 'NetconfError'.

Overrides ​

Error.name

Released under the MIT Licence.