Added three new exception types
This commit is contained in:
parent
edd5080efa
commit
e86abb7cd2
@ -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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user