Skip to content

@statesync/core


@statesync/core / SyncErrorContext

Interface: SyncErrorContext

Defined in: types.ts:74

Properties

attempt?

ts
optional attempt: number;

Defined in: types.ts:90


error

ts
error: unknown;

Defined in: types.ts:77


eventRevision?

ts
optional eventRevision: Revision;

Defined in: types.ts:87


localRevision?

ts
optional localRevision: Revision;

Defined in: types.ts:86

Helpful context for triage/metrics. These fields are optional and best-effort.


nextDelayMs?

ts
optional nextDelayMs: number;

Defined in: types.ts:92


phase

ts
phase: SyncPhase;

Defined in: types.ts:75


snapshotRevision?

ts
optional snapshotRevision: Revision;

Defined in: types.ts:88


sourceEvent?

ts
optional sourceEvent: unknown;

Defined in: types.ts:82

Raw event payload when applicable (transport-specific). Intentionally unknown to keep core transport-agnostic.


sourceId?

ts
optional sourceId: string;

Defined in: types.ts:89


topic?

ts
optional topic: string;

Defined in: types.ts:76


willRetry?

ts
optional willRetry: boolean;

Defined in: types.ts:91

Released under the MIT License.