Skip to content

Interface: RpcErrorSpec ​

Defined in: netconf/src/testing/fake-server.ts:20

One <rpc-error> for a handler to return, as { errors: [...] } (RFC 6241 §4.3).

Properties ​

appTag? ​

ts
readonly appTag?: string;

Defined in: netconf/src/testing/fake-server.ts:28

<error-app-tag>: a more specific, data-model-defined condition.


info? ​

ts
readonly info?: readonly XmlNode[];

Defined in: netconf/src/testing/fake-server.ts:34

The children of <error-info>.


message? ​

ts
readonly message?: string;

Defined in: netconf/src/testing/fake-server.ts:32

<error-message>, sent with xml:lang="en".


path? ​

ts
readonly path?: string;

Defined in: netconf/src/testing/fake-server.ts:30

<error-path>: the XPath of the element the error is about.


severity? ​

ts
readonly severity?: "error" | "warning";

Defined in: netconf/src/testing/fake-server.ts:26

<error-severity>. Default 'error'.


tag ​

ts
readonly tag: string;

Defined in: netconf/src/testing/fake-server.ts:24

<error-tag>, such as operation-failed or lock-denied.


type ​

ts
readonly type: "rpc" | "transport" | "protocol" | "application";

Defined in: netconf/src/testing/fake-server.ts:22

<error-type>: the layer where the error occurred.

Released under the MIT Licence.