
    ^i                        S r SSKJr   " S S\5      r " S S\5      r " S S\5      r " S	 S
\5      r " S S\5      rg)z.
Exceptions that can be thrown by hyperframe.
    )annotationsc                      \ rS rSrSrSrg)HyperframeError   zW
The base class for all exceptions for the hyperframe module.

.. versionadded:: 6.0.0
 N__name__
__module____qualname____firstlineno____doc____static_attributes__r       O/home/james-whalen/.local/lib/python3.13/site-packages/hyperframe/exceptions.pyr   r          r   r   c                  ,    \ rS rSrSrSS jrSS jrSrg)	UnknownFrameError   z
A frame of unknown type was received.

.. versionchanged:: 6.0.0
    Changed base class from `ValueError` to :class:`HyperframeError`
c                    Xl         X l        g )N
frame_typelength)selfr   r   s      r   __init__UnknownFrameError.__init__   s    $ r   c                >    SU R                   S SU R                   S3$ )Nz(UnknownFrameError: Unknown frame type 0xXz received, length z bytesr   )r   s    r   __str__UnknownFrameError.__str__   s*    6tq6II[\`\g\g[hhno	
r   r   N)r   intr   r    returnNone)r!   str)r	   r
   r   r   r   r   r   r   r   r   r   r   r      s    
r   r   c                      \ rS rSrSrSrg)InvalidPaddingError$   z
A frame with invalid padding was received.

.. versionchanged:: 6.0.0
    Changed base class from `ValueError` to :class:`HyperframeError`
r   Nr   r   r   r   r%   r%   $   s    r   r%   c                      \ rS rSrSrSrg)InvalidFrameError-   z
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`
r   Nr   r   r   r   r(   r(   -   s    r   r(   c                      \ rS rSrSrSrg)InvalidDataError8   zc
Content or data of a frame was is invalid or violates the specification.

.. versionadded:: 6.0.0
r   Nr   r   r   r   r+   r+   8   r   r   r+   N)	r   
__future__r   	Exceptionr   r   r%   r(   r+   r   r   r   <module>r/      sK    #i 
 
*/   r   