Class AxiosError<T, D>

Type Parameters

  • T = unknown

  • D = any

Hierarchy

Constructors

  • Type Parameters

    • T = unknown

    • D = any

    Parameters

    • Optional message: string
      Optional
    • Optional code: string
      Optional
    • Optional config: AxiosRequestConfig<D>
      Optional
    • Optional request: any
      Optional
    • Optional response: AxiosResponse<T, D>
      Optional

    Returns AxiosError<T, D>

Properties

cause?: unknown
code?: string
isAxiosError: boolean
message: string
name: string
request?: any
response?: AxiosResponse<T, D>
stack?: string
status?: string
toJSON: (() => object)

Type declaration

    • (): object
    • Returns object

ECONNABORTED: "ECONNABORTED" = "ECONNABORTED"
ERR_BAD_OPTION: "ERR_BAD_OPTION" = "ERR_BAD_OPTION"
ERR_BAD_OPTION_VALUE: "ERR_BAD_OPTION_VALUE" = "ERR_BAD_OPTION_VALUE"
ERR_BAD_REQUEST: "ERR_BAD_REQUEST" = "ERR_BAD_REQUEST"
ERR_BAD_RESPONSE: "ERR_BAD_RESPONSE" = "ERR_BAD_RESPONSE"
ERR_CANCELED: "ERR_CANCELED" = "ERR_CANCELED"
ERR_DEPRECATED: "ERR_DEPRECATED" = "ERR_DEPRECATED"
ERR_FR_TOO_MANY_REDIRECTS: "ERR_FR_TOO_MANY_REDIRECTS" = "ERR_FR_TOO_MANY_REDIRECTS"
ERR_NETWORK: "ERR_NETWORK" = "ERR_NETWORK"
ETIMEDOUT: "ETIMEDOUT" = "ETIMEDOUT"
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function
      Optional

    Returns void

Generated using TypeDoc