Add nova.exception.InvalidRPCConnectionReuse.

nova.rpc.common.ConnectionContext makes use of an exception that was not
defined.  This patch adds it.

Change-Id: Ibfbd2fc56dbcc36c8f271d5bc8c6e1db04ce8c93
This commit is contained in:
Russell Bryant
2012-01-23 16:53:44 -05:00
parent 409e1761ed
commit c6c8cec13b

View File

@@ -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):