summaryrefslogtreecommitdiff
path: root/docker/errors.py
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2015-04-27 11:26:45 -0700
committerJoffrey F <joffrey@docker.com>2015-04-27 11:26:45 -0700
commit019751daa8df3c62eb4fa971dbe7ee671c133a1f (patch)
treecbc88f5cc0ca2a06882a39d375c0e1e5575fd9f1 /docker/errors.py
parentc2d48652ce9e5808bfa3f22b2daec34e88d5e9df (diff)
downloaddocker-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.py4
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