basalt / audit/src / AuditChainConflictError
Class: AuditChainConflictError
Defined in: audit/src/chain.ts:53
Thrown by a store's append when (chain, seq) is already taken — another writer (another replica, or another Audit instance) extended the chain first. Audit re-reads the head and retries; stores must raise this (and not silently accept a duplicate), otherwise concurrent writers fork the chain.
Extends
Constructors
Constructor
> new AuditChainConflictError(tenantId, seq, options?): AuditChainConflictError
Defined in: audit/src/chain.ts:54
Parameters
tenantId
string | undefined
seq
number | undefined
options?
ErrorOptions
Returns
AuditChainConflictError
Overrides
Properties
code
> readonly code: string
Defined in: core/src/errors.ts:25
Inherited from
details?
> readonly optional details?: Record<string, unknown>
Defined in: core/src/errors.ts:28
Structured payload passed to the constructor, exactly as given (never sanitised here).