Error specific to a single stream.
| 120 | |
| 121 | |
| 122 | class HTTP2StreamError(HTTP2Error): |
| 123 | """Error specific to a single stream.""" |
| 124 | |
| 125 | def __init__(self, stream_id, message=None, error_code=None): |
| 126 | self.stream_id = stream_id |
| 127 | super().__init__(message, error_code) |
| 128 | |
| 129 | def __str__(self): |
| 130 | return f"Stream {self.stream_id}: {self.message}" |
| 131 | |
| 132 | |
| 133 | class HTTP2ConnectionError(HTTP2Error): |
no outgoing calls