MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / ApiValueError

Class ApiValueError

sdks/python/src/e2a/v1/generated/exceptions.py:50–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

requestMethod · 0.90
_apply_auth_paramsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected