Error raised by SimpleAsyncHTTPClient on timeout. For historical reasons, this is a subclass of `.HTTPClientError` which simulates a response code of 599. .. versionadded:: 5.1
| 42 | |
| 43 | |
| 44 | class HTTPTimeoutError(HTTPError): |
| 45 | """Error raised by SimpleAsyncHTTPClient on timeout. |
| 46 | |
| 47 | For historical reasons, this is a subclass of `.HTTPClientError` |
| 48 | which simulates a response code of 599. |
| 49 | |
| 50 | .. versionadded:: 5.1 |
| 51 | """ |
| 52 | |
| 53 | def __init__(self, message: str) -> None: |
| 54 | super().__init__(599, message=message) |
| 55 | |
| 56 | def __str__(self) -> str: |
| 57 | return self.message or "Timeout" |
| 58 | |
| 59 | |
| 60 | class HTTPStreamClosedError(HTTPError): |
no outgoing calls
no test coverage detected