Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ProviderRpcError<T>

Error subclass implementing Ethereum Provider errors per EIP-1193.

see

https://eips.ethereum.org/EIPS/eip-1193

Type parameters

  • T = undefined

Hierarchy

Index

Constructors

  • new ProviderRpcError<T>(code: 4001 | 4100 | 4200 | 4900 | 4901 | 4902, message: string, internal?: unknown, data?: T): ProviderRpcError<T>
  • Create an Ethereum Provider JSON-RPC error. code must be an integer in the 1000 <= 4999 range.

    Type parameters

    • T = undefined

    Parameters

    • code: 4001 | 4100 | 4200 | 4900 | 4901 | 4902
    • message: string
    • Optional internal: unknown
    • Optional data: T

    Returns ProviderRpcError<T>

Properties

code: number
data?: T
internal?: unknown
message: string
name: string
stack?: string
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Type declaration

stackTraceLimit: number

Methods

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc