diff --git a/languages/python/templates/exceptions.mustache b/languages/python/templates/exceptions.mustache index 1594a2d..342abd8 100644 --- a/languages/python/templates/exceptions.mustache +++ b/languages/python/templates/exceptions.mustache @@ -36,7 +36,7 @@ class ApiTypeError(OpenApiException, TypeError): full_msg = msg if path_to_item: full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiTypeError, self).__init__(full_msg) + super(ApiTypeError, self).__init__(full_msg, path_to_item, valid_classes, key_type) class ApiValueError(OpenApiException, ValueError): @@ -54,7 +54,7 @@ class ApiValueError(OpenApiException, ValueError): full_msg = msg if path_to_item: full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiValueError, self).__init__(full_msg) + super(ApiValueError, self).__init__(full_msg, path_to_item) class ApiAttributeError(OpenApiException, AttributeError): @@ -73,7 +73,7 @@ class ApiAttributeError(OpenApiException, AttributeError): full_msg = msg if path_to_item: full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiAttributeError, self).__init__(full_msg) + super(ApiAttributeError, self).__init__(full_msg, path_to_item) class ApiKeyError(OpenApiException, KeyError): @@ -90,7 +90,7 @@ class ApiKeyError(OpenApiException, KeyError): full_msg = msg if path_to_item: full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) - super(ApiKeyError, self).__init__(full_msg) + super(ApiKeyError, self).__init__(full_msg, path_to_item) class ApiException(OpenApiException):