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