Merge "Adds ExternalIpAddressExhaustedClient exception"

This commit is contained in:
Jenkins
2013-10-03 01:24:36 +00:00
committed by Gerrit Code Review
2 changed files with 7 additions and 1 deletions

View File

@@ -94,6 +94,10 @@ class IpAddressGenerationFailureClient(NeutronClientException):
pass
class ExternalIpAddressExhaustedClient(NeutronClientException):
pass
class Unauthorized(NeutronClientException):
message = _("Unauthorized: bad credentials.")

View File

@@ -51,7 +51,9 @@ def exception_handler_v20(status_code, error_content):
'PortInUse': exceptions.PortInUseClient,
'AlreadyAttached': exceptions.AlreadyAttachedClient,
'IpAddressGenerationFailure':
exceptions.IpAddressGenerationFailureClient, }
exceptions.IpAddressGenerationFailureClient,
'ExternalIpAddressExhausted':
exceptions.ExternalIpAddressExhaustedClient, }
error_dict = None
if isinstance(error_content, dict):