Skip to main content

ContractInstantiationError

Base class for Web3 errors.

Hierarchy

Index

Constructors

publicconstructor

  • Parameters

    • optionalmsg: string
    • optionalcause: Error | Error[]

    Returns ContractInstantiationError

Properties

publiccause

cause: undefined | Error

publiccode

code: number = ERR_CONTRACT_INSTANTIATION

publicreadonlyname

name: string

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 }
  • Returns { cause: undefined | Error; code: number; innerError: undefined | Error; message: string; name: string }

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

publicstaticconvertToString

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

    • value: unknown
    • unquotValue: boolean = false

    Returns string