The type returned from an API error

the error name "AptosApiError"

the url the request was made to

the response status. i.e. 400

the response message

the response data

the AptosRequest

Hierarchy

  • Error
    • AptosApiError

Constructors

  • Internal

    this constructor is for sdk internal use - do not instantiate outside of the SDK codebase

    Parameters

    • __namedParameters: AptosApiErrorOpts

    Returns AptosApiError

Properties

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

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void