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
cause
unknown
cleanupErrors?
readonly unknown[] = []
message?
string
Returns
TransactionError
Overrides
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
name
ts
name: string = 'TransactionError';Defined in: netconf/src/operations/transaction.ts:92
'TransactionError', or a subclass's own name.
Overrides
phase
ts
readonly phase: TransactionPhase;Defined in: netconf/src/operations/transaction.ts:95
Where the transaction failed: 'lock', 'edit', 'commit', 'confirm' and so on.