Skip to content

AllStreamOperationsFailedError

Error raised when the stream append path completed deterministically but every submitted operation failed.

  • Error

new AllStreamOperationsFailedError(result): AllStreamOperationsFailedError

OperationSubmitResult

AllStreamOperationsFailedError

Error.constructor

readonly code: "STREAM_ALL_OPERATIONS_FAILED" = 'STREAM_ALL_OPERATIONS_FAILED'


readonly receipts: readonly OperationEventReceiptV1[]

Every exact immutable receipt returned for the rejected submission.


readonly result: OperationSubmitResult


readonly operations: object[]

optional opIndex?: number

name: string

operation: unknown

dataHash: string

version: number

optional status?: "error" | "noop" | "applied"

optional error?: object

code: string

message: string

optional details?: { reason: "expected_version_mismatch"; expectedVersion: number; currentVersion: number; } | { reason: "lease_held"; leaseExpiresAt: string; } | { reason: "validation_failed"; issues: object[]; } | { reason: "rate_limit_reset"; retryAfterSeconds: number; resetAt: string; } | { reason: "cursor_fence_unavailable"; cause: "not_ready" | "below_floor" | "above_head"; retryFromStart: true; }

optional submittedName?: string

optional resolvedName?: string

optional retryable?: boolean

optional warnings?: object

optional undeclaredFields?: string[]

optional undeclaredFieldsTruncated?: true

optional totalUndeclared?: number

optional coalescedWrefs?: object[]

optional coalescedWrefsTruncated?: true

optional totalCoalescedWrefs?: number

optional deprecations?: object[]


readonly statusCounts: object

applied: number

noop: number

error: number


readonly optional cause?: { code: string; message: string; }

Error.cause