CommitError is thrown to indicate that a transaction committed with an unsuccessful status code.

Hierarchy

  • Error
    • CommitError

Constructors

  • Parameters

    • properties: Readonly<{
          code:
              | 0
              | 1
              | 2
              | 3
              | 4
              | 5
              | 6
              | 7
              | 8
              | 9
              | 10
              | 11
              | 12
              | 13
              | 14
              | 15
              | 16
              | 17
              | 18
              | 19
              | 20
              | 21
              | 22
              | 23
              | 24
              | 25
              | 254
              | 255;
          message?: string;
          transactionId: string;
      }>

    Returns CommitError

Properties

cause?: unknown
code:
    | 0
    | 1
    | 2
    | 3
    | 4
    | 5
    | 6
    | 7
    | 8
    | 9
    | 10
    | 11
    | 12
    | 13
    | 14
    | 15
    | 16
    | 17
    | 18
    | 19
    | 20
    | 21
    | 22
    | 23
    | 24
    | 25
    | 254
    | 255

Transaction validation status code. The value corresponds to one of the values enumerated by StatusCode.

message: string
name: string
stack?: string
transactionId: string

The ID of the transaction.

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