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

How do you add a global error handler? #5

Open
kevinrenskers opened this issue Apr 4, 2019 · 1 comment
Open

How do you add a global error handler? #5

kevinrenskers opened this issue Apr 4, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@kevinrenskers
Copy link

Let's say I want to catch API errors in one place, where I can do something with it, like log it somewhere, show it to the user, etc. I noticed that there is CodyFire.shared.successResponseHandler but nothing like it for errors?

@MihaelIsaev MihaelIsaev added the enhancement New feature or request label Apr 4, 2019
@kevinrenskers
Copy link
Author

Something like I did here would be super useful (for me) to have as a global error handler :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants