Error representing failures in orchestrator state transaction operations.

Indicates issues with lock acquisition, state persistence, or memory access during orchestration execution. These errors typically trigger retries.

Hierarchy

  • ViolationError<"OrchestratorTransaction">
    • TransactionViolation

Constructors

  • Parameters

    • param: {
          cause: TransactionViolationCauseType;
          initiatingEvent: ArvoEvent<Record<string, any>, Record<string,
              | null
              | string
              | number
              | boolean>, string>;
          message: string;
      }
      • cause: TransactionViolationCauseType
      • initiatingEvent: ArvoEvent<Record<string, any>, Record<string,
            | null
            | string
            | number
            | boolean>, string>
      • message: string

    Returns TransactionViolation

Properties

cause: TransactionViolationCauseType

Specific cause of the transaction failure

isArvoViolationError = true

An additional flag to determine if it is an Arvo specific violation error

message: string
metadata: null | Record<string, any>

Additional structured data about the violation

name

The error name, formatted as ViolationError This helps with error identification in logs and stack traces

stack?: string
type

The specific type/category of the violation

prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void