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

Error handling? #23

Closed
gc opened this issue Aug 10, 2019 · 2 comments
Closed

Error handling? #23

gc opened this issue Aug 10, 2019 · 2 comments

Comments

@gc
Copy link

gc commented Aug 10, 2019

Hi!

I have a question regarding error handling. How do you recommend to do this? I occasionally get 401 errors, and am not sure how I should catch them. Thanks!

@brenapp
Copy link
Owner

brenapp commented Aug 13, 2019

Events should bubble up through the call stack, and as such try/catch or promise .catch() is going to be your best bet. Currently I'm not exposing the raw requests on the Poll parent class, but I imagine that could be a feature in the future

1 similar comment
@brenapp
Copy link
Owner

brenapp commented Aug 13, 2019

Events should bubble up through the call stack, and as such try/catch or promise .catch() is going to be your best bet. Currently I'm not exposing the raw requests on the Poll parent class, but I imagine that could be a feature in the future

@brenapp brenapp closed this as completed Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants