Skip to main content

TransactionError <ReceiptType>

Hierarchy

Index

Constructors

constructor

  • new TransactionError<ReceiptType>(message: string, receipt?: ReceiptType): TransactionError<ReceiptType>
  • Type parameters

    • ReceiptType = TransactionReceipt

    Parameters

    • message: string
    • optionalreceipt: ReceiptType

    Returns TransactionError<ReceiptType>

Properties

code

code: number

innerError

innerError: undefined | Error | Error[]

readonlyname

name: string

optionalreceipt

receipt?: ReceiptType

stack

stack: undefined | string

Methods

toJSON

  • toJSON(): { code: number; innerError: undefined | Error | Error[]; message: string; name: string; receipt: undefined | ReceiptType }
  • Returns { code: number; innerError: undefined | Error | Error[]; message: string; name: string; receipt: undefined | ReceiptType }

    • code: number
    • innerError: undefined | Error | Error[]
    • message: string
    • name: string
    • receipt: undefined | ReceiptType

staticconvertToString

  • convertToString(value: unknown, unquotValue?: boolean): string
  • Parameters

    • value: unknown
    • optionalunquotValue: boolean

    Returns string