Added three new exception types

This commit is contained in:
tengqm 2015-01-02 00:24:48 +08:00
parent edd5080efa
commit e86abb7cd2

View File

@ -211,6 +211,18 @@ class ClusterExists(SenlinException):
msg_fmt = _("The Cluster (%(cluster_name)s) already exists.")
class ClusterNotSpecified(SenlinException):
msg_fmt = _("The cluster was not specified.")
class ProfileNotFound(SenlinException):
msg_fmt = _("The profile (%(profile)s) could not be found.")
class ProfileNotSpecicified(SenlinException):
msg_fmt = _("Profile not specified.")
class ProfileValidationFailed(SenlinException):
msg_fmt = _("%(message)s")