Merge "Use EntityNotFound as super class for exceptions."

This commit is contained in:
Jenkins 2015-12-21 06:34:10 +00:00 committed by Gerrit Code Review
commit 2e6f5e1220
1 changed files with 4 additions and 4 deletions

View File

@ -191,12 +191,12 @@ class InvalidSchemaError(HeatException):
msg_fmt = _("%(message)s")
class ResourceNotFound(HeatException):
class ResourceNotFound(EntityNotFound):
msg_fmt = _("The Resource (%(resource_name)s) could not be found "
"in Stack %(stack_name)s.")
class SnapshotNotFound(HeatException):
class SnapshotNotFound(EntityNotFound):
msg_fmt = _("The Snapshot (%(snapshot)s) for Stack (%(stack)s) "
"could not be found.")
@ -214,8 +214,8 @@ class ResourceNotAvailable(HeatException):
msg_fmt = _("The Resource (%(resource_name)s) is not available.")
class WatchRuleNotFound(HeatException):
'''Keep this for AWS compatiblility.'''
class WatchRuleNotFound(EntityNotFound):
"""Keep this for AWS compatiblility."""
msg_fmt = _("The Watch Rule (%(watch_name)s) could not be found.")