Skip to content

Class: LockDeniedError ​

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

A lock was refused because another session holds it (lock-denied).

Extends ​

Extended by ​

Constructors ​

Constructor ​

ts
new LockDeniedError(
   datastore, 
   holder, 
   cause, 
   cleanupErrors?
): LockDeniedError;

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

Parameters ​

datastore ​

"running" | "candidate"

holder ​

number | undefined

cause ​

RpcError

cleanupErrors? ​

readonly unknown[] = []

Returns ​

LockDeniedError

Overrides ​

TransactionError.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.

Inherited from ​

TransactionError.cleanupErrors


code ​

ts
readonly code: string = 'ERR_NETCONF_LOCK_DENIED';

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

Stable, machine-readable error code.

Overrides ​

TransactionError.code


datastore ​

ts
readonly datastore: "running" | "candidate";

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

The datastore that couldn't be locked.


holder ​

ts
readonly holder: number | undefined;

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

The holder's session-id from <error-info>. 0 means a non-NETCONF holder; undefined if the server didn't say.


name ​

ts
name: string = 'LockDeniedError';

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

'LockDeniedError'.

Overrides ​

TransactionError.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.

Inherited from ​

TransactionError.phase

Released under the MIT Licence.