diff options
author | Joffrey F <joffrey@docker.com> | 2015-04-27 11:26:45 -0700 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2015-04-27 11:26:45 -0700 |
commit | 019751daa8df3c62eb4fa971dbe7ee671c133a1f (patch) | |
tree | cbc88f5cc0ca2a06882a39d375c0e1e5575fd9f1 /docker/errors.py | |
parent | c2d48652ce9e5808bfa3f22b2daec34e88d5e9df (diff) | |
download | docker-py-check_resource_not_none.tar.gz |
Use custom Error class (inherits DockerException and ValueError)check_resource_not_none
Diffstat (limited to 'docker/errors.py')
-rw-r--r-- | docker/errors.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docker/errors.py b/docker/errors.py index fb9cb5a..d15e332 100644 --- a/docker/errors.py +++ b/docker/errors.py @@ -78,3 +78,7 @@ class TLSParameterError(DockerException): "client configurations. See " "http://docs.docker.com/examples/https/ for " "API details.") + + +class NullResource(DockerException, ValueError): + pass |