o
    ãÝ`gG  ã                   @   sX   d Z G dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG d	d
„ d
eƒZdS )zg
hyperframe/exceptions
~~~~~~~~~~~~~~~~~~~~~

Defines the exceptions that can be thrown by hyperframe.
c                   @   ó   e Zd ZdZdS )ÚHyperframeErrorzc
    The base class for all exceptions for the hyperframe module.

    .. versionadded:: 6.0.0
    N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   úP/var/www/html/propose/venv/lib/python3.10/site-packages/hyperframe/exceptions.pyr   
   s    r   c                   @   s4   e Zd ZdZdededdfdd„Zdefdd	„ZdS )
ÚUnknownFrameErrorz—
    A frame of unknown type was received.

    .. versionchanged:: 6.0.0
        Changed base class from `ValueError` to :class:`HyperframeError`
    Ú
frame_typeÚlengthÚreturnNc                 C   s   || _ || _d S )N©r   r   )Úselfr   r   r   r   r	   Ú__init__   s   
zUnknownFrameError.__init__c                 C   s   d| j | jf S )NzDUnknownFrameError: Unknown frame type 0x%X received, length %d bytesr   )r   r   r   r	   Ú__str__    s   
ÿÿzUnknownFrameError.__str__)r   r   r   r   Úintr   Ústrr   r   r   r   r	   r
      s    r
   c                   @   r   )ÚInvalidPaddingErrorzœ
    A frame with invalid padding was received.

    .. versionchanged:: 6.0.0
        Changed base class from `ValueError` to :class:`HyperframeError`
    Nr   r   r   r   r	   r   '   s    r   c                   @   r   )ÚInvalidFrameErrorzÖ
    Parsing a frame failed because the data was not laid out appropriately.

    .. versionadded:: 3.0.2

    .. versionchanged:: 6.0.0
        Changed base class from `ValueError` to :class:`HyperframeError`
    Nr   r   r   r   r	   r   1   s    r   c                   @   r   )ÚInvalidDataErrorzo
    Content or data of a frame was is invalid or violates the specification.

    .. versionadded:: 6.0.0
    Nr   r   r   r   r	   r   =   s    r   N)r   Ú	Exceptionr   r
   r   r   r   r   r   r   r	   Ú<module>   s   
