Skip to content

Class: TransactionError ​

Defined in: netconf/src/operations/transaction.ts:90

A candidate transaction failed. cause is the original error; cleanupErrors lists any discard or unlock failures after it.

Extends ​

Extended by ​

Constructors ​

Constructor ​

ts
new TransactionError(
   phase, 
   cause, 
   cleanupErrors?, 
   message?
): TransactionError;

Defined in: netconf/src/operations/transaction.ts:99

Parameters ​

phase ​

TransactionPhase

cause ​

unknown

cleanupErrors? ​

readonly unknown[] = []

message? ​

string

Returns ​

TransactionError

Overrides ​

NetconfError.constructor

Properties ​

cleanupErrors ​

ts
readonly cleanupErrors: readonly unknown[];

Defined in: netconf/src/operations/transaction.ts:97

Errors from discard-changes or unlock while cleaning up. They never replace the original error.


code ​

ts
readonly code: string = 'ERR_NETCONF_TRANSACTION';

Defined in: netconf/src/operations/transaction.ts:93

Stable, machine-readable error code.

Overrides ​

NetconfError.code


name ​

ts
name: string = 'TransactionError';

Defined in: netconf/src/operations/transaction.ts:92

'TransactionError', or a subclass's own name.

Overrides ​

NetconfError.name


phase ​

ts
readonly phase: TransactionPhase;

Defined in: netconf/src/operations/transaction.ts:95

Where the transaction failed: 'lock', 'edit', 'commit', 'confirm' and so on.

Released under the MIT Licence.