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)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc