| 79 | |
| 80 | |
| 81 | class ApiKeyError(OpenApiException, KeyError): |
| 82 | def __init__(self, msg, path_to_item=None): |
| 83 | """ |
| 84 | Args: |
| 85 | msg (str): the exception message |
| 86 | |
| 87 | Keyword Args: |
| 88 | path_to_item (None/list) the path to the exception in the |
| 89 | received_data dict |
| 90 | """ |
| 91 | self.path_to_item = path_to_item |
| 92 | full_msg = msg |
| 93 | if path_to_item: |
| 94 | full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) |
| 95 | super(ApiKeyError, self).__init__(full_msg) |
| 96 | |
| 97 | |
| 98 | class ApiException(OpenApiException): |
nothing calls this directly
no outgoing calls
no test coverage detected