X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=tosca2heat%2Ftosca-parser%2Ftoscaparser%2Fcommon%2Fexception.py;h=13ccabdc32d4cb7f2cf5ce8ff4cde384c7e4c96b;hb=d098a14d69bf78b7674ec5d75003c21250e640bc;hp=f67a2771a060443b869b8c6b7f5af8e1cfb645e9;hpb=be620c74d492cb2e4b9ad3055832e36849a3ac6b;p=parser.git diff --git a/tosca2heat/tosca-parser/toscaparser/common/exception.py b/tosca2heat/tosca-parser/toscaparser/common/exception.py index f67a277..13ccabd 100644 --- a/tosca2heat/tosca-parser/toscaparser/common/exception.py +++ b/tosca2heat/tosca-parser/toscaparser/common/exception.py @@ -114,16 +114,30 @@ class UnknownInputError(TOSCAException): msg_fmt = _('Unknown input "%(input_name)s".') +class UnknownOutputError(TOSCAException): + msg_fmt = _('Unknown output "%(output_name)s" in %(where)s.') + + class MissingRequiredInputError(TOSCAException): msg_fmt = _('%(what)s is missing required input definition ' - ' with name: "%(input_name)s".') + 'of input "%(input_name)s".') class MissingRequiredParameterError(TOSCAException): - msg_fmt = _('%(what)s is missing required parameter for input: ' + msg_fmt = _('%(what)s is missing required parameter for input ' '"%(input_name)s".') +class MissingDefaultValueError(TOSCAException): + msg_fmt = _('%(what)s is missing required default value ' + 'of input "%(input_name)s".') + + +class MissingRequiredOutputError(TOSCAException): + msg_fmt = _('%(what)s is missing required output definition ' + 'of output "%(output_name)s".') + + class InvalidPropertyValueError(TOSCAException): msg_fmt = _('Value of property "%(what)s" is invalid.')