LogConflictError

Class: LogConflictError

Defined in: packages/workflow-core/src/types.ts:611

Thrown by RunStore.appendEvent when another writer has already committed a record at the requested index. The engine catches it and decides whether to treat as idempotent (same signalId) or as a lost race (different signalId).

Extends

  • Error

Constructors

Constructor

ts
new LogConflictError(
   runId, 
   attemptedIndex, 
   existing?): LogConflictError;
new LogConflictError(
   runId, 
   attemptedIndex, 
   existing?): LogConflictError;

Defined in: packages/workflow-core/src/types.ts:613

Parameters

runId

string

attemptedIndex

number

existing?

WorkflowEvent

Returns

LogConflictError

Overrides

ts
Error.constructor
Error.constructor

Properties

attemptedIndex

ts
readonly attemptedIndex: number;
readonly attemptedIndex: number;

Defined in: packages/workflow-core/src/types.ts:615


cause?

ts
optional cause: unknown;
optional cause: unknown;

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24

Inherited from

ts
Error.cause
Error.cause

existing?

ts
readonly optional existing: WorkflowEvent;
readonly optional existing: WorkflowEvent;

Defined in: packages/workflow-core/src/types.ts:616


message

ts
message: string;
message: string;

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075

Inherited from

ts
Error.message
Error.message

name

ts
readonly name: "LogConflictError" = 'LogConflictError';
readonly name: "LogConflictError" = 'LogConflictError';

Defined in: packages/workflow-core/src/types.ts:612

Overrides

ts
Error.name
Error.name

runId

ts
readonly runId: string;
readonly runId: string;

Defined in: packages/workflow-core/src/types.ts:614


stack?

ts
optional stack: string;
optional stack: string;

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from

ts
Error.stack
Error.stack