summaryrefslogtreecommitdiff
path: root/ironic/common/exception.py
diff options
context:
space:
mode:
Diffstat (limited to 'ironic/common/exception.py')
-rw-r--r--ironic/common/exception.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ironic/common/exception.py b/ironic/common/exception.py
index 4352ee8bc..ce3654de8 100644
--- a/ironic/common/exception.py
+++ b/ironic/common/exception.py
@@ -611,6 +611,11 @@ class IncompleteLookup(Invalid):
"is required")
+class NotificationEventTypeError(IronicException):
+ _msg_fmt = _('Expected "status" to be one of "start", "end", '
+ '"error", or "success", but got "%(status)s"')
+
+
class NotificationSchemaObjectError(IronicException):
_msg_fmt = _("Expected object %(obj)s when populating notification payload"
" but got object %(source)s")