Skip to content

Wrap HTTPError exceptions into meaningfull exceptions #56

Description

@esben

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions