Skip to content

Latest commit

 

History

History
225 lines (113 loc) · 4.3 KB

AcrossApiSimulationError.md

File metadata and controls

225 lines (113 loc) · 4.3 KB

@across-protocol/app-sdk / AcrossApiSimulationError

Class: AcrossApiSimulationError

Extends

Constructors

new AcrossApiSimulationError()

new AcrossApiSimulationError(params, opts?): AcrossApiSimulationError

Parameters

params

params.message?: string

params.transaction?

params.transaction.data?: `0x${string}`

params.transaction.from?: `0x${string}`

params.transaction.to?: `0x${string}`

params.transaction.value?: string

params.url?: string

opts?: ErrorOptions

Returns

AcrossApiSimulationError

Overrides

AcrossApiError.constructor

Defined in

packages/sdk/src/errors/index.ts:61

Properties

cause?

optional cause: unknown

Inherited from

AcrossApiError.cause

Defined in

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2022.error.d.ts:24


message

message: string

Inherited from

AcrossApiError.message

Defined in

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1076


name

name: string

Inherited from

AcrossApiError.name

Defined in

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1075


stack?

optional stack: string

Inherited from

AcrossApiError.stack

Defined in

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1077


status

readonly status: number

Inherited from

AcrossApiError.status

Defined in

packages/sdk/src/errors/index.ts:15


transaction

readonly transaction: object

data

data: `0x${string}`

from

from: `0x${string}`

to

to: `0x${string}`

value?

optional value: string

Defined in

packages/sdk/src/errors/index.ts:54


url

readonly url: string

Inherited from

AcrossApiError.url

Defined in

packages/sdk/src/errors/index.ts:14


prepareStackTrace()?

static optional prepareStackTrace: (err, stackTraces) => any

Optional override for formatting stack traces

Parameters

err: Error

stackTraces: CallSite[]

Returns

any

See

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from

AcrossApiError.prepareStackTrace

Defined in

node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:28


stackTraceLimit

static stackTraceLimit: number

Inherited from

AcrossApiError.stackTraceLimit

Defined in

node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:30

Methods

captureStackTrace()

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

targetObject: object

constructorOpt?: Function

Returns

void

Inherited from

AcrossApiError.captureStackTrace

Defined in

node_modules/.pnpm/@[email protected]/node_modules/@types/node/globals.d.ts:21