Files
2025-04-30 08:48:49 -05:00

33 lines
1.2 KiB
Python

# uncompyle6 version 3.9.2
# Python bytecode version base 3.7.0 (3394)
# Decompiled from: Python 3.8.19 (default, Mar 20 2024, 15:27:52)
# [Clang 14.0.6 ]
# Embedded file name: /var/user/app/device_supervisorbak/device_supervisor/lib/hpack/exceptions.py
# Compiled at: 2024-04-18 03:12:57
# Size of source mod 2**32: 974 bytes
"""
hyper/http20/exceptions
~~~~~~~~~~~~~~~~~~~~~~~
This defines exceptions used in the HTTP/2 portion of hyper.
"""
class HPACKError(Exception):
__doc__ = "\n The base class for all ``hpack`` exceptions.\n "
class HPACKDecodingError(HPACKError):
__doc__ = "\n An error has been encountered while performing HPACK decoding.\n "
class InvalidTableIndex(HPACKDecodingError):
__doc__ = "\n An invalid table index was received.\n "
class OversizedHeaderListError(HPACKDecodingError):
__doc__ = "\n A header list that was larger than we allow has been received. This may be\n a DoS attack.\n\n .. versionadded:: 2.3.0\n "
class InvalidTableSizeError(HPACKDecodingError):
__doc__ = "\n An attempt was made to change the decoder table size to a value larger than\n allowed, or the list was shrunk and the remote peer didn't shrink their\n table size.\n\n .. versionadded:: 3.0.0\n "