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 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: "below_floor" | "above_head" | "not_ready"; retryFromStart: true; }

optional submittedName?: string

optional resolvedName?: string

optional retryable?: boolean

optional warnings?: object

Non-blocking warnings collected during shape validation — see GH-1418. Aliased to the generated wire shape so this type cannot drift from the backend’s streamMutationResultEntrySchema.warnings.

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