Skip to content

Interface: RpcErrorDetail ​

Defined in: netconf/src/messages/rpc-error.ts:38

One <rpc-error> (RFC 6241 §4.3).

Properties ​

appTag? ​

ts
readonly appTag?: string;

Defined in: netconf/src/messages/rpc-error.ts:46

The data-model or implementation-specific error condition (error-app-tag), if sent.


element ​

ts
readonly element: XmlElement;

Defined in: netconf/src/messages/rpc-error.ts:61

The original <rpc-error> element.


info? ​

ts
readonly info?: XmlElement;

Defined in: netconf/src/messages/rpc-error.ts:59

<error-info> content, such as <session-id> for lock-denied or <bad-element>.


message? ​

ts
readonly message?: string;

Defined in: netconf/src/messages/rpc-error.ts:55

The human-readable description (error-message), trimmed, if sent.


messageLang? ​

ts
readonly messageLang?: string;

Defined in: netconf/src/messages/rpc-error.ts:57

The language of message (its xml:lang), such as 'en', if sent.


path? ​

ts
readonly path?: string;

Defined in: netconf/src/messages/rpc-error.ts:53

An XPath expression locating the problem. Its prefixes resolve with the namespace declarations in scope on element (RFC 6241 §4.3), which include any the server declared on <rpc-reply>: element.lookupNamespace(prefix).


severity ​

ts
readonly severity: RpcErrorSeverity;

Defined in: netconf/src/messages/rpc-error.ts:44

error-severity; anything other than warning reads as 'error'.


tag ​

ts
readonly tag: RpcErrorTag;

Defined in: netconf/src/messages/rpc-error.ts:42

The error condition (error-tag), such as 'lock-denied'. 'operation-failed' if the server sent none.


type ​

ts
readonly type: string & object | RpcErrorType;

Defined in: netconf/src/messages/rpc-error.ts:40

The layer the error occurred in (error-type). 'rpc' if the server sent none.

Released under the MIT Licence.