Skip to main content

InvalidAddressError

Base class for Web3 errors.

Hierarchy

Index

Constructors

publicconstructor

Properties

publiccause

cause: undefined | Error

publiccode

code: number = ERR_INVALID_ADDRESS

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