Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TxnError

Holds information describing which operations failed if the transaction was rolled back.

Hierarchy

  • TxnError

Index

Constructors

constructor

  • Returns TxnError

  • Parameters

    Returns TxnError

Methods

getOpIndex

  • getOpIndex(): number
  • Set the index of the failed operation in the transaction

    Returns number

getWhat

  • getWhat(): string
  • Set error message about why that operation failed.

    Returns string

setOpIndex

  • Set the index of the failed operation in the transaction

    Parameters

    • opIndex: number

    Returns TxnError

setWhat

  • Set error message about why that operation failed.

    Parameters

    • what: string

    Returns TxnError

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc