summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index 1e1818e7d..aff188d01 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -419,6 +419,11 @@ class InvalidUUID(Invalid):
message = _("Expected a uuid but received %(uuid).")
+class ConstraintNotMet(NovaException):
+ message = _("Constraint not met.")
+ code = 412
+
+
class NotFound(NovaException):
message = _("Resource could not be found.")
code = 404