Class TransactionViolation

Hierarchy

  • ViolationError<"OrchestratorTransaction">
    • TransactionViolation

Constructors

  • Parameters

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

    Returns TransactionViolation

Properties

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