MCPcopy Create free account
hub / github.com/bundesAPI/smard-api / ApiValueError

Class ApiValueError

python-client/deutschland/smard/exceptions.py:44–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

__setattr__Method · 0.90
requestMethod · 0.90
__new__Method · 0.90
getMethod · 0.90
check_allowed_valuesFunction · 0.90
check_validationsFunction · 0.90
index_getterFunction · 0.90
deserialize_primitiveFunction · 0.90
get_allof_instancesFunction · 0.90
get_oneof_instanceFunction · 0.90
get_anyof_instancesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected