The type returned from an API error

Param: name

the error name "AptosApiError"

Param: url

the url the request was made to

Param: status

the response status. i.e. 400

Param: statusText

the response message

Param: data

the response data

Param: request

the AptosRequest

Hierarchy

  • Error
    • AptosApiError

Constructors

Properties

data: any
message: string
name: string
request: AptosRequest
stack?: string
status: number
statusText: string
url: string
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc