ApiError class
API error class.
Signature:
export declare class ApiError extends Error
Extends: Error
References: Error
Constructor
new ApiError (status: number, url: string, headers: RawAxiosRequestHeaders, response?: AxiosResponse<any>)
Constructs a new instance of the ApiError
class.
Parameters:
Parameter | Type | Description |
---|---|---|
status | Number | |
url | String | |
headers | RawAxiosRequestHeaders | |
response | AxiosResponse < any > |
Properties
headers
The headers sent with the request.
Type: RawAxiosRequestHeaders
response
The received response object.
Type: AxiosResponse
url
The requested URL.
Type: String
Table of Contents