@@ -46,7 +46,7 @@ def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None) ->
4646 full_msg = msg
4747 if path_to_item :
4848 full_msg = "{0} at {1}" .format (msg , render_path (path_to_item ))
49- super (ApiTypeError , self ).__init__ (full_msg )
49+ super (ApiTypeError , self ).__init__ (full_msg , path_to_item , valid_classes , key_type )
5050
5151
5252class ApiValueError (OpenApiException , ValueError ):
@@ -64,7 +64,7 @@ def __init__(self, msg, path_to_item=None) -> None:
6464 full_msg = msg
6565 if path_to_item :
6666 full_msg = "{0} at {1}" .format (msg , render_path (path_to_item ))
67- super (ApiValueError , self ).__init__ (full_msg )
67+ super (ApiValueError , self ).__init__ (full_msg , path_to_item )
6868
6969
7070class ApiAttributeError (OpenApiException , AttributeError ):
@@ -83,7 +83,7 @@ def __init__(self, msg, path_to_item=None) -> None:
8383 full_msg = msg
8484 if path_to_item :
8585 full_msg = "{0} at {1}" .format (msg , render_path (path_to_item ))
86- super (ApiAttributeError , self ).__init__ (full_msg )
86+ super (ApiAttributeError , self ).__init__ (full_msg , path_to_item )
8787
8888
8989class ApiKeyError (OpenApiException , KeyError ):
@@ -100,7 +100,7 @@ def __init__(self, msg, path_to_item=None) -> None:
100100 full_msg = msg
101101 if path_to_item :
102102 full_msg = "{0} at {1}" .format (msg , render_path (path_to_item ))
103- super (ApiKeyError , self ).__init__ (full_msg )
103+ super (ApiKeyError , self ).__init__ (full_msg , path_to_item )
104104
105105
106106class ApiException (OpenApiException ):
0 commit comments