Added two new types of exceptions
This commit is contained in:
parent
27a0cf7556
commit
7047ca0bf0
@ -270,6 +270,14 @@ class RequestLimitExceeded(SenlinException):
|
|||||||
msg_fmt = _('Request limit exceeded: %(message)s')
|
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):
|
class ActionNotSupported(SenlinException):
|
||||||
msg_fmt = _('Action "%(action)s" not supported by %(object)s')
|
msg_fmt = _('Action "%(action)s" not supported by %(object)s')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user