Skip to main content

TransactionError <ReceiptType>

Base class for Web3 errors.

Hierarchy

Index

Constructors

publicconstructor

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

    Parameters

    • message: string
    • optionalreceipt: ReceiptType

    Returns TransactionError<ReceiptType>

Properties

publiccause

cause: undefined | Error

publiccode

code: number = ERR_TX

publicreadonlyname

name: string

publicoptionalreceipt

receipt?: ReceiptType

publicstack

stack: undefined | string

Accessors

publicinnerError

  • get innerError(): undefined | Error | Error[]
  • set innerError(cause: undefined | Error | Error[]): void
  • @deprecated

    Use the cause property instead.


    Returns undefined | Error | Error[]

  • @deprecated

    Use the cause property instead.


    Parameters

    • cause: undefined | Error | Error[]

    Returns void

Methods

publictoJSON

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

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

publicstaticconvertToString

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

    • value: unknown
    • unquotValue: boolean = false

    Returns string