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
SubscriptionErrorXmlErrorFramingErrorHelloErrorTransportErrorTimeoutErrorAbortErrorSessionClosedErrorProtocolErrorCapabilityErrorSchemaUnavailableErrorYangDataErrorRpcErrorTransactionErrorPathErrorProfileError
Constructors
Constructor
new NetconfError(message, options?): NetconfError;Defined in: netconf/src/errors.ts:31
Parameters
message
string
options?
Returns
NetconfError
Overrides
Error.constructor
Properties
code
readonly code: string = 'ERR_NETCONF';Defined in: netconf/src/errors.ts:29
Stable, machine-readable error code.
name
name: string = 'NetconfError';Defined in: netconf/src/errors.ts:27
Always 'NetconfError'.
Overrides
Error.name