summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell Bryant <rbryant@redhat.com>2012-01-23 16:53:44 -0500
committerRussell Bryant <rbryant@redhat.com>2012-01-24 16:18:05 -0500
commita3046e007f53b9b31528a2b35b2f000ae0441750 (patch)
tree958583c88dc52198051e121f53e1fea19f792480
parentbe96c433902da7782df1f1e471fc1c0e48bc609d (diff)
Add nova.exception.InvalidRPCConnectionReuse.
nova.rpc.common.ConnectionContext makes use of an exception that was not defined. This patch adds it. Change-Id: Ibfbd2fc56dbcc36c8f271d5bc8c6e1db04ce8c93
-rw-r--r--nova/exception.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index a60c82f71..42ec908d7 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -247,6 +247,10 @@ class InvalidCidr(Invalid):
message = _("Invalid cidr %(cidr)s.")
+class InvalidRPCConnectionReuse(Invalid):
+ message = _("Invalid reuse of an RPC connection.")
+
+
# Cannot be templated as the error syntax varies.
# msg needs to be constructed when raised.
class InvalidParameterValue(Invalid):