Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
exceptions.py54 linesDownload Raw Back to hpack
1"""2Exceptions used in hpack.3"""4from __future__ import annotations5 6 7class HPACKError(Exception):8    """9    The base class for all ``hpack`` exceptions.10    """11 12 13 14class HPACKDecodingError(HPACKError):15    """16    An error has been encountered while performing HPACK decoding.17    """18 19 20 21class InvalidTableIndexError(HPACKDecodingError):22    """23    An invalid table index was received.24 25    .. versionadded:: 4.1.026    """27 28class InvalidTableIndex(InvalidTableIndexError):  # noqa: N81829    """30    An invalid table index was received.31 32    .. deprecated:: 4.1.033       Renamed to :class:`InvalidTableIndexError`, use it instead.34    """35 36 37class OversizedHeaderListError(HPACKDecodingError):38    """39    A header list that was larger than we allow has been received. This may be40    a DoS attack.41 42    .. versionadded:: 2.3.043    """44 45 46class InvalidTableSizeError(HPACKDecodingError):47    """48    An attempt was made to change the decoder table size to a value larger than49    allowed, or the list was shrunk and the remote peer didn't shrink their50    table size.51 52    .. versionadded:: 3.0.053    """54 
codekingpro/portable-devtools · Team Ai