Hierarchy

  • Error
    • AxiosError

Constructors

  • Parameters

    • error: AxiosError<unknown, any>

    Returns AxiosError

    new AxiosError(errorThrownByAxios)
    
  • Parameters

    • message: string
    • error: AxiosError<unknown, any>

    Returns AxiosError

    new AxiosError('error message', errorThrownByAxios)
    
  • Parameters

    Returns AxiosError

    new AxiosError('error message', { config, request, response })
    

Properties

cause?: unknown
config: undefined | InternalAxiosRequestConfig<any>
message: string
name: string
request?: any
response?: AxiosResponse<unknown, any>
stack?: string
status?: number
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Returns string

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void