From 7047ca0bf0e1f1a3bd0a703d3a2cd28df9467e31 Mon Sep 17 00:00:00 2001 From: tengqm Date: Wed, 31 Dec 2014 17:51:06 +0800 Subject: [PATCH] Added two new types of exceptions --- senlin/common/exception.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/senlin/common/exception.py b/senlin/common/exception.py index 5d6bcef69..ec6a08b61 100644 --- a/senlin/common/exception.py +++ b/senlin/common/exception.py @@ -270,6 +270,14 @@ class RequestLimitExceeded(SenlinException): msg_fmt = _('Request limit exceeded: %(message)s') +class ActionMissingTarget(SenlinException): + msg_fmt = _('Action "%(action)s" must have target specified') + + +class ActionMissingPolicy(SenlinException): + msg_fmt = _('Action "%(action)s" must have policy specified') + + class ActionNotSupported(SenlinException): msg_fmt = _('Action "%(action)s" not supported by %(object)s')