Skip to content

Class: PartialLockDeniedError ​

Defined in: netconf/src/operations/partial-lock.ts:63

A partial lock was refused because another session holds a lock on some of the same nodes, or a global lock on running.

Extends ​

Constructors ​

Constructor ​

ts
new PartialLockDeniedError(
   holder, 
   lockId, 
   cause
): PartialLockDeniedError;

Defined in: netconf/src/operations/partial-lock.ts:70

Parameters ​

holder ​

number | undefined

lockId ​

number | undefined

cause ​

RpcError

Returns ​

PartialLockDeniedError

Overrides ​

LockDeniedError.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 ​

LockDeniedError.cleanupErrors


code ​

ts
readonly code: string = 'ERR_NETCONF_PARTIAL_LOCK_DENIED';

Defined in: netconf/src/operations/partial-lock.ts:66

Stable, machine-readable error code.

Overrides ​

LockDeniedError.code


datastore ​

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

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

The datastore that couldn't be locked.

Inherited from ​

LockDeniedError.datastore


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.

Inherited from ​

LockDeniedError.holder


lockId ​

ts
readonly lockId: number | undefined;

Defined in: netconf/src/operations/partial-lock.ts:68

The conflicting partial lock's id, if the server gave one in <error-info>.


name ​

ts
name: string = 'PartialLockDeniedError';

Defined in: netconf/src/operations/partial-lock.ts:65

The error class name.

Overrides ​

LockDeniedError.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 ​

LockDeniedError.phase

Released under the MIT Licence.