/
githubmirror
/
XX-Net
Обзор
Документация
Войти
/
githubmirror
/
XX-Net
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
code/default/lib/noarch/hyper/http20/exceptions.py
49 строк
947 B
Michael.X
4.0.0 upgrade to python3
27 мар 2020, 13:14
27 мар 2020, 13:14
57fd3bd
Код
Авторство
О чём код?
# -*- coding: utf-8 -*- """ hyper/http20/exceptions ~~~~~~~~~~~~~~~~~~~~~~~ This defines exceptions used in the HTTP/2 portion of hyper. """ class HTTP20Error(Exception): """ The base class for all of ``hyper``'s HTTP/2-related exceptions. """ pass class HPACKEncodingError(HTTP20Error): """ An error has been encountered while performing HPACK encoding. """ pass class HPACKDecodingError(HTTP20Error): """ An error has been encountered while performing HPACK decoding. """ pass class ConnectionError(HTTP20Error): """ The remote party signalled an error affecting the entire HTTP/2 connection, and the connection has been closed. """ pass class ProtocolError(HTTP20Error): """ The remote party violated the HTTP/2 protocol. """ pass class StreamResetError(HTTP20Error): """ A stream was forcefully reset by the remote party. """ pass