summaryrefslogtreecommitdiff
path: root/neutronclient/common
diff options
context:
space:
mode:
authorChris Yeoh <cyeoh@au1.ibm.com>2013-09-30 22:30:10 +0930
committerChris Yeoh <cyeoh@au1.ibm.com>2013-09-30 22:30:10 +0930
commit0d532673d7667f30828cb4e62e5f9ed0260f6bf0 (patch)
tree427873f41077e1366c0030d4db2b3a6808e0e49a /neutronclient/common
parent16bf2825ad7b71f533ea3f9eb041168c586edb6f (diff)
downloadpython-neutronclient-0d532673d7667f30828cb4e62e5f9ed0260f6bf0.tar.gz
Adds ExternalIpAddressExhaustedClient exception
Adds the ExternalIpAddressExhaustedClient exception so a more specific exception than NeutronClientException is raised when IPs run out. This will allow for better exception handling in Nova. Closes-Bug: 1233143 Change-Id: I9f40bf14eec0f485dfd21b36605a2474b99a8941
Diffstat (limited to 'neutronclient/common')
-rw-r--r--neutronclient/common/exceptions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/neutronclient/common/exceptions.py b/neutronclient/common/exceptions.py
index b9485ec..b3ab4d7 100644
--- a/neutronclient/common/exceptions.py
+++ b/neutronclient/common/exceptions.py
@@ -94,6 +94,10 @@ class IpAddressGenerationFailureClient(NeutronClientException):
pass
+class ExternalIpAddressExhaustedClient(NeutronClientException):
+ pass
+
+
class Unauthorized(NeutronClientException):
message = _("Unauthorized: bad credentials.")