Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating type of Rejection Error thrown from Axios to AxiosError #1420

Closed
wants to merge 19 commits into from

Conversation

AyushG3112
Copy link
Contributor

@AyushG3112 AyushG3112 commented Mar 15, 2018

Currently, all axios rejections in Javascript are of type Error, making it differentiate between different rejection reasons.

This PR introduces a custom error type AxiosError which can be used by users to determine if the error returned is from axios or not.

Aims to fix the issue more concretely than #1419

@vladkolotvin
Copy link

#1415

@AyushG3112
Copy link
Contributor Author

Closed in favor of #1419. Please reopen if deemed necessary in v1.0.0

@AyushG3112 AyushG3112 closed this Aug 20, 2018
@axios axios locked and limited conversation to collaborators May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants