Skip to content

Catch ClientErrorException may do nothing when request is POST mode. #55

Description

@yuxuanchiadm

In class AbstrDockerCmd. Method exec() want catch ClientErrorException to handle http status other than 200(Some error happend). But this may only work when do GET method.
For example, DockerClient.inspectContainerCmd(containerId) method use HTTP_GET method and work well. But if we call DockerClient.stopContainerCmd(containerId) method and try catch NotFoundException or/and NotModifiedException to get stop operation result. This issues will cause we always got nothing even though target container not exist.

Sorry for my poor English...

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions