Is your feature request related to a problem? Please describe.
I use typescript.
How to verify that I received exactly axios error?
Describe the solution you'd like
Add custom error class: AxiosException, which is inherited from the standard Error class
Example
try {
axios.get('...')
}
catch(err) {
if (err instanceof AxiosException) {
console.error(err.response);
}
}
Is your feature request related to a problem? Please describe.
I use typescript.
How to verify that I received exactly axios error?
Describe the solution you'd like
Add custom error class: AxiosException, which is inherited from the standard Error class
Example