AppLockError
Hierarchy
- TransactionError
- AppLockError
Index
Constructors
Properties
Constructors
constructor
Parameters
message: string
The error message.
details: { holder?: { commitId?: string; context?: string; lockId: string; takenAt?: number }; newestCommitId?: string; reason: held | not-held | state-moved | unfinished; refreshedCommitId?: string; stateFileNames?: string[] }
Why the lock was refused, and what the state provider knows about it.
optionalholder: { commitId?: string; context?: string; lockId: string; takenAt?: number }
optionalnewestCommitId: string
reason: held | not-held | state-moved | unfinished
optionalrefreshedCommitId: string
optionalstateFileNames: string[]
Returns AppLockError
Properties
optionalreadonlyholder
The lock held now, when one is: its id, the commit it was taken on, who took it and when (epoch milliseconds).
Type declaration
optionalcommitId?: string
optionalcontext?: string
lockId: string
optionaltakenAt?: number
optionalreadonlynewestCommitId
For state-moved, the newest commit in state, which the run never read.
readonlyreason
Why the lock was refused.
optionalreadonlyrefreshedCommitId
For state-moved, the commit the run last read.
optionalreadonlystateFileNames
For unfinished, the journal files of the run that was never archived.
Thrown when the app lock is refused: another run holds it (
held), the lock to resume is not the one held (not-held), the state moved since it was last refreshed (state-moved), or the state holds journal files of a run that was never archived (unfinished), named instateFileNames.Errors/Transaction
When another run holds the lock, or the lock given is not the one held.
When a command that needs the app locked runs while the app is not locked.
When state moved since it was last read, or holds a run that was never archived.