Added two new types of exceptions

This commit is contained in:
tengqm 2014-12-31 17:51:06 +08:00
parent 27a0cf7556
commit 7047ca0bf0

View File

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