Skip to content

Class: BaseNotificationError ​

Defined in: netconf/src/operations/base-notifications.ts:179

A base notification that breaks the ietf-netconf-notifications module.

Extends ​

Constructors ​

Constructor ​

ts
new BaseNotificationError(
   event, 
   field, 
   problem, 
   cause?
): BaseNotificationError;

Defined in: netconf/src/operations/base-notifications.ts:190

Parameters ​

event ​

XmlElement

field ​

string

problem ​

string

cause? ​

unknown

Returns ​

BaseNotificationError

Overrides ​

ProtocolError.constructor

Properties ​

code ​

ts
readonly code: string = 'ERR_NETCONF_BASE_NOTIFICATION';

Defined in: netconf/src/operations/base-notifications.ts:182

Stable, machine-readable error code.

Overrides ​

ProtocolError.code


element ​

ts
readonly element: XmlElement;

Defined in: netconf/src/operations/base-notifications.ts:188

The event element.


event ​

ts
readonly event: string;

Defined in: netconf/src/operations/base-notifications.ts:184

The notification name, e.g. netconf-session-end.


field ​

ts
readonly field: string;

Defined in: netconf/src/operations/base-notifications.ts:186

The offending field, e.g. termination-reason or edit/target.


name ​

ts
name: string = 'BaseNotificationError';

Defined in: netconf/src/operations/base-notifications.ts:181

The error class name.

Overrides ​

ProtocolError.name

Released under the MIT Licence.