Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/mongodbflex/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9873a8f7a4120017699e43baba2e8b2af7bca93e
d7306ee5d2400a8571c390a29df8ffd02428182f
8 changes: 4 additions & 4 deletions services/mongodbflex/src/stackit/mongodbflex/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None) ->
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):
Expand All @@ -64,7 +64,7 @@ def __init__(self, msg, path_to_item=None) -> None:
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):
Expand All @@ -83,7 +83,7 @@ def __init__(self, msg, path_to_item=None) -> None:
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):
Expand All @@ -100,7 +100,7 @@ def __init__(self, msg, path_to_item=None) -> None:
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):
Expand Down
Loading