Skip to main content

ConnectionError

Base class for Web3 errors.

Hierarchy

Index

Constructors

publicconstructor

Properties

publiccause

cause: undefined | Error

publiccode

code: number = ERR_CONN

publicoptionalerrorCode

errorCode?: number

publicoptionalerrorReason

errorReason?: string

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

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

publicstaticconvertToString

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

    • value: unknown
    • unquotValue: boolean = false

    Returns string