Skip to content

Class: RpcError ​

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

The server answered with one or more <rpc-error>s of severity error. See RpcError.

Extends ​

Constructors ​

Constructor ​

ts
new RpcError(errors, reply): RpcError;

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

Parameters ​

errors ​

readonly RpcErrorDetail[]

reply ​

XmlElement

Returns ​

RpcError

Overrides ​

NetconfError.constructor

Properties ​

code ​

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

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

Stable, machine-readable error code.

Overrides ​

NetconfError.code


errors ​

ts
readonly errors: readonly RpcErrorDetail[];

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

Every error and warning in the reply, in order.


name ​

ts
name: string = 'RpcError';

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

Always 'RpcError'.

Overrides ​

NetconfError.name


reply ​

ts
readonly reply: XmlElement;

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

The <rpc-reply> element.

Accessors ​

first ​

Get Signature ​

ts
get first(): RpcErrorDetail;

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

The first error-severity entry.

Returns ​

RpcErrorDetail


tag ​

Get Signature ​

ts
get tag(): RpcErrorTag;

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

The tag of the first error, e.g. 'lock-denied'.

Returns ​

RpcErrorTag

Released under the MIT Licence.