Hierarchy

  • Error
    • AxiosError

Constructors

  • Parameters

    • error: AxiosError<unknown, any>

    Returns AxiosError

    Example

    new AxiosError(errorThrownByAxios)
    
  • Parameters

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

    Returns AxiosError

    Example

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

    Returns AxiosError

    Example

    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, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

stackTraceLimit: number

Methods

  • Returns string

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc