Skip to content

Class: YangDataError ​

Defined in: netconf/src/yang/errors.ts:19

YANG data that doesn't match the schema, in either direction: XML from the server that can't be typed (with requireSchema), or JSON that can't be encoded. issues lists every problem found, each with its data path, and cause is the YANG library's own error.

Extends ​

Constructors ​

Constructor ​

ts
new YangDataError(
   message, 
   issues, 
   options?
): YangDataError;

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

Parameters ​

message ​

string

issues ​

readonly DataIssue[]

options? ​

NetconfErrorOptions

Returns ​

YangDataError

Overrides ​

NetconfError.constructor

Properties ​

code ​

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

Defined in: netconf/src/yang/errors.ts:23

Always 'ERR_NETCONF_YANG_DATA'.

Overrides ​

NetconfError.code


issues ​

ts
readonly issues: readonly DataIssue[];

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

Every problem found, not only the first; warnings may be among them.


name ​

ts
name: string = 'YangDataError';

Defined in: netconf/src/yang/errors.ts:21

Always 'YangDataError'.

Overrides ​

NetconfError.name

Released under the MIT Licence.