Merge "Use EntityNotFound as super class for exceptions."
This commit is contained in:
commit
2e6f5e1220
@ -191,12 +191,12 @@ class InvalidSchemaError(HeatException):
|
|||||||
msg_fmt = _("%(message)s")
|
msg_fmt = _("%(message)s")
|
||||||
|
|
||||||
|
|
||||||
class ResourceNotFound(HeatException):
|
class ResourceNotFound(EntityNotFound):
|
||||||
msg_fmt = _("The Resource (%(resource_name)s) could not be found "
|
msg_fmt = _("The Resource (%(resource_name)s) could not be found "
|
||||||
"in Stack %(stack_name)s.")
|
"in Stack %(stack_name)s.")
|
||||||
|
|
||||||
|
|
||||||
class SnapshotNotFound(HeatException):
|
class SnapshotNotFound(EntityNotFound):
|
||||||
msg_fmt = _("The Snapshot (%(snapshot)s) for Stack (%(stack)s) "
|
msg_fmt = _("The Snapshot (%(snapshot)s) for Stack (%(stack)s) "
|
||||||
"could not be found.")
|
"could not be found.")
|
||||||
|
|
||||||
@ -214,8 +214,8 @@ class ResourceNotAvailable(HeatException):
|
|||||||
msg_fmt = _("The Resource (%(resource_name)s) is not available.")
|
msg_fmt = _("The Resource (%(resource_name)s) is not available.")
|
||||||
|
|
||||||
|
|
||||||
class WatchRuleNotFound(HeatException):
|
class WatchRuleNotFound(EntityNotFound):
|
||||||
'''Keep this for AWS compatiblility.'''
|
"""Keep this for AWS compatiblility."""
|
||||||
msg_fmt = _("The Watch Rule (%(watch_name)s) could not be found.")
|
msg_fmt = _("The Watch Rule (%(watch_name)s) could not be found.")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user