Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SdkError

Generic SDK error. Wrapped errors are:

  • ethers.js errors
  • http request errors

Hierarchy

Index

Constructors

  • new SdkError(message: string, error_code?: string): SdkError

Properties

cause?: Error
error_code?: string
error_type: string
message: string
name: string
stack?: string
NO_SLIPPAGE: string = "no_slippage"
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