| 4 | |
| 5 | |
| 6 | class ApiError(Exception): |
| 7 | status_code: typing.Optional[int] |
| 8 | body: typing.Any |
| 9 | |
| 10 | def __init__(self, *, status_code: typing.Optional[int] = None, body: typing.Any = None): |
| 11 | self.status_code = status_code |
| 12 | self.body = body |
| 13 | |
| 14 | def __str__(self) -> str: |
| 15 | return f"status_code: {self.status_code}, body: {self.body}" |
nothing calls this directly
no outgoing calls
no test coverage detected