MCPcopy
hub / github.com/benoitc/gunicorn / HTTP2Error

Class HTTP2Error

gunicorn/http2/errors.py:32–41  ·  view source on GitHub ↗

Base exception for HTTP/2 errors.

Source from the content-addressed store, hash-verified

30
31
32class HTTP2Error(Exception):
33 """Base exception for HTTP/2 errors."""
34
35 error_code = 0x0 # NO_ERROR
36
37 def __init__(self, message=None, error_code=None):
38 self.message = message or self.__class__.__doc__
39 if error_code is not None:
40 self.error_code = error_code
41 super().__init__(self.message)
42
43
44class HTTP2ProtocolError(HTTP2Error):

Callers 6

test_no_errorMethod · 0.90
send_informationalMethod · 0.85
send_trailersMethod · 0.85
send_informationalMethod · 0.85
send_trailersMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_no_errorMethod · 0.72