Skip to content

Class: CapabilityError ​

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

An operation needs a capability the server didn't advertise.

Extends ​

Constructors ​

Constructor ​

ts
new CapabilityError(
   capability, 
   operation, 
   options?
): CapabilityError;

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

Parameters ​

capability ​

string

operation ​

string

options? ​

NetconfErrorOptions

Returns ​

CapabilityError

Overrides ​

NetconfError.constructor

Properties ​

capability ​

ts
readonly capability: string;

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

The capability the operation needs: a short name such as :candidate, a module or URI, or a description.


code ​

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

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

Stable, machine-readable error code.

Overrides ​

NetconfError.code


name ​

ts
name: string = 'CapabilityError';

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

Always 'CapabilityError'.

Overrides ​

NetconfError.name

Released under the MIT Licence.