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: "add" | "revise" | "retract" | "noop"

dataHash: string

version: number

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

optional error?: object

code: string

message: string

optional details?: { reason: "expected_version_mismatch"; expectedVersion: number; currentVersion: number; } | { reason: "lease_held"; leaseExpiresAt: string; }

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.

undeclaredFields: string[]

optional undeclaredFieldsTruncated?: true

optional totalUndeclared?: number


readonly statusCounts: object

applied: number

noop: number

error: number


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

Error.cause