From 3da8b47cdb4fa22deb01e5511e90627eb208cf88 Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Mon, 23 Mar 2015 10:43:39 -0500 Subject: [PATCH] Add ResourceNotFound exception This is used by both the get and delete changes, and currently get depends on delete for it. It should just be by itself. Change-Id: Ic11f8cc50c0f49b2ae37a5e09624a549602b66c8 --- openstack/exceptions.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openstack/exceptions.py b/openstack/exceptions.py index 5180cc43..eb652425 100644 --- a/openstack/exceptions.py +++ b/openstack/exceptions.py @@ -90,6 +90,11 @@ class DuplicateResource(SDKException): pass +class ResourceNotFound(NotFoundException): + """No resource exists with that name or id.""" + pass + + class ResourceTimeout(SDKException): """Timeout waiting for resource.""" pass