summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-06-17 23:16:55 +0000
committerGerrit Code Review <review@openstack.org>2013-06-17 23:16:55 +0000
commitf27a4f306183017da5dfceeb7d1dfa8cf4cbb433 (patch)
tree8d5d2cbe7472694c902b3cb6d9c9e9725e37197d /nova/exception.py
parent5d26786ff3c37991bf79a2d91e709277c194bee6 (diff)
parent7fdba82bad3c4e550bda4db03ed9d1ab7ab62934 (diff)
downloadnova-f27a4f306183017da5dfceeb7d1dfa8cf4cbb433.tar.gz
nova-f27a4f306183017da5dfceeb7d1dfa8cf4cbb433.tar.xz
nova-f27a4f306183017da5dfceeb7d1dfa8cf4cbb433.zip
Merge "Add unique constraints to Cell."
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index 68cf1f991..893c0df75 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -825,6 +825,10 @@ class CellNotFound(NotFound):
message = _("Cell %(cell_name)s doesn't exist.")
+class CellExists(Duplicate):
+ message = _("Cell with name %(name)s already exists.")
+
+
class CellRoutingInconsistency(NovaException):
message = _("Inconsistency in cell routing: %(reason)s")