MCPcopy Create free account
hub / github.com/devflowinc/trieve / ApiValueError

Class ApiValueError

clients/python-sdk/trieve_py_client/exceptions.py:51–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50
51class ApiValueError(OpenApiException, ValueError):
52 def __init__(self, msg, path_to_item=None) -> None:
53 """
54 Args:
55 msg (str): the exception message
56
57 Keyword Args:
58 path_to_item (list) the path to the exception in the
59 received_data dict. None if unset
60 """
61
62 self.path_to_item = path_to_item
63 full_msg = msg
64 if path_to_item:
65 full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
66 super(ApiValueError, self).__init__(full_msg)
67
68
69class ApiAttributeError(OpenApiException, AttributeError):

Callers 2

requestMethod · 0.90
_apply_auth_paramsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected