Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 4f247e5

Browse files
committed
Add ProtocolError exception.
1 parent 237b0a0 commit 4f247e5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hyper/http20/exceptions.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,9 @@ class ConnectionError(HTTP20Error):
3131
connection, and the connection has been closed.
3232
"""
3333
pass
34+
35+
class ProtocolError(HTTP20Error):
36+
"""
37+
The remote party violated the HTTP/2 protocol.
38+
"""
39+
pass

0 commit comments

Comments
 (0)