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

Wrap HTTPError exceptions into meaningfull exceptions #56

Open
esben opened this issue Aug 28, 2016 · 0 comments
Open

Wrap HTTPError exceptions into meaningfull exceptions #56

esben opened this issue Aug 28, 2016 · 0 comments
Labels

Comments

@esben
Copy link
Member

esben commented Aug 28, 2016

Replace all HTTPError (and child exception classes) exceptions into method specific meaningfull exceptions.

As an example, when calling container_kill() on a container that is not running, instead of returning a ServerError exception, intercept that (which seems to require regex matching on the response) and return something like a ContainerIsNotRunning exception.

@esben esben added the api label Sep 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant