Skip to content

ConflictError

Base class for errors a Runtime raises when a write is rejected as stale because another execution changed the same data first.

Catch this class to treat every conflict alike, or a subclass such as StateTransitionConflictError to handle one kind. Retry a conflict only from fresh Item references and only when the surrounding callback is safe to run again.

Conflict errors

  • BaseAlpyneRuntimeError

new ConflictError(message?): ConflictError

string

ConflictError

BaseAlpyneRuntimeError.constructor

new ConflictError(message?, options?): ConflictError

string

ErrorOptions

ConflictError

BaseAlpyneRuntimeError.constructor

abstract readonly code: string

Stable machine-readable discriminator for this kind of error.

BaseAlpyneRuntimeError.code

toJSON(): object

Serializes the error as its code, message, and stack for logging and transport.

object

code: string

message: string

stack: string | undefined

BaseAlpyneRuntimeError.toJSON