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

All Restkit exceptions should inherit from a common base. #115

Open
dsully opened this issue Jan 31, 2013 · 1 comment
Open

All Restkit exceptions should inherit from a common base. #115

dsully opened this issue Jan 31, 2013 · 1 comment

Comments

@dsully
Copy link

dsully commented Jan 31, 2013

It's really frustrating to check for any number of exceptions to determine if they were output from restkit.

Currently exceptions like RedirectLimit just inherit from Exception.

If all exceptions could have a common base class, that would be much easier.

Thanks

@wendall911
Copy link

Not sure what's expected here, or how this could be implemented without breaking several existing code bases.

If you import restkit errors like this:
import restkit.errors
Then you'll get the exception from:
<class 'restkit.errors.RedirectLimit'>

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