Skip to content

Create common Exception interface, break exceptions into smaller parts #10

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

Closed
sagikazarmark opened this issue May 15, 2015 · 2 comments
Closed

Comments

@sagikazarmark
Copy link
Member

It is a common practice to introduce a generic Exception interface so that all exceptions thrown by this library can be caught in a single catch.

Also, as discussed on gitter, we should create more exceptions instead of one or two big ones.

@ddeboer
Copy link
Contributor

ddeboer commented May 25, 2015

👍

At least differentiate between client exceptions (400s), server exceptions (500s) and networking errors (timeouts and such).

@sagikazarmark
Copy link
Member Author

That's a good point.

Currently the separation is based on single and multi requests.

Can you open a separate issue for that?

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