interface ApiError<T = any, D = any> {
    cause?: Error;
    code?: string;
    config?: InternalAxiosRequestConfig<D>;
    isAxiosError: boolean;
    isError: true;
    message: string;
    name: string;
    request?: any;
    response?: AxiosResponse<T, D>;
    stack?: string;
    status?: number;
    toJSON: () => object;
}

Type Parameters

  • T = any
  • D = any

Hierarchy

  • AxiosError<T, D>
    • ApiError

Properties

cause?: Error
code?: string
config?: InternalAxiosRequestConfig<D>
isAxiosError: boolean
isError: true
message: string
name: string
request?: any
response?: AxiosResponse<T, D>
stack?: string
status?: number
toJSON: () => object