Documentation / zerotal / lock / LockNotAcquiredError
Class: LockNotAcquiredError
Defined in: packages/core/src/lock/errors.ts:12
Thrown when a lock cannot be acquired: immediately by
try/Lock.try when the key is
busy, or by block/Lock.block
when the wait timeout elapses. Carries the contended key and maps to
HTTP 409 (code E_LOCK_NOT_ACQUIRED).
Extends
Constructors
Constructor
new LockNotAcquiredError(
key):LockNotAcquiredError
Defined in: packages/core/src/lock/errors.ts:16
Parameters
key
string
Returns
LockNotAcquiredError
Overrides
Properties
code
readonlycode:string
Defined in: packages/core/src/errors/ZerotalError.ts:18
Inherited from
status
readonlystatus:number=500
Defined in: packages/core/src/errors/ZerotalError.ts:19
Inherited from
context?
readonlyoptionalcontext?:Record<string,unknown>
Defined in: packages/core/src/errors/ZerotalError.ts:20
Inherited from
key
readonlykey:string
Defined in: packages/core/src/lock/errors.ts:14
The lock key that could not be acquired.