@@ -45,7 +45,7 @@ def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None) ->
4545 full_msg = msg
4646 if path_to_item :
4747 full_msg = "{0} at {1}" .format (msg , render_path (path_to_item ))
48- super (ApiTypeError , self ).__init__ (full_msg )
48+ super (ApiTypeError , self ).__init__ (full_msg , path_to_item , valid_classes , key_type )
4949
5050
5151class ApiValueError (OpenApiException , ValueError ):
@@ -63,7 +63,7 @@ def __init__(self, msg, path_to_item=None) -> None:
6363 full_msg = msg
6464 if path_to_item :
6565 full_msg = "{0} at {1}" .format (msg , render_path (path_to_item ))
66- super (ApiValueError , self ).__init__ (full_msg )
66+ super (ApiValueError , self ).__init__ (full_msg , path_to_item )
6767
6868
6969class ApiAttributeError (OpenApiException , AttributeError ):
@@ -82,7 +82,7 @@ def __init__(self, msg, path_to_item=None) -> None:
8282 full_msg = msg
8383 if path_to_item :
8484 full_msg = "{0} at {1}" .format (msg , render_path (path_to_item ))
85- super (ApiAttributeError , self ).__init__ (full_msg )
85+ super (ApiAttributeError , self ).__init__ (full_msg , path_to_item )
8686
8787
8888class ApiKeyError (OpenApiException , KeyError ):
@@ -99,7 +99,7 @@ def __init__(self, msg, path_to_item=None) -> None:
9999 full_msg = msg
100100 if path_to_item :
101101 full_msg = "{0} at {1}" .format (msg , render_path (path_to_item ))
102- super (ApiKeyError , self ).__init__ (full_msg )
102+ super (ApiKeyError , self ).__init__ (full_msg , path_to_item )
103103
104104
105105class ApiException (OpenApiException ):
0 commit comments