Ë
    êñi¼  ã                  ól  — d Z ddlmZ ddlmZ  G d„ de«      Z G d„ de«      Z G d	„ d
e«      Z G d„ de«      Z	 G d„ de«      Z
 G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ dee«      Z G d„ de«      Z G d„ de«      Z G d„ d e«      Z G d!„ d"e«      Zy#)$z@
h2/exceptions
~~~~~~~~~~~~~

Exceptions for the HTTP/2 module.
é    )Úannotationsé   )Ú
ErrorCodesc                  ó   — e Zd ZdZy)ÚH2ErrorzB
    The base class for all exceptions for the HTTP/2 module.
    N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    úO/var/www/pod-logistic/pod-ai/venv/lib/python3.12/site-packages/h2/exceptions.pyr   r      s   „ òr   r   c                  ó(   — e Zd ZdZej
                  Zy)ÚProtocolErrorzF
    An action was attempted in violation of the HTTP/2 protocol.
    N)r	   r
   r   r   r   ÚPROTOCOL_ERRORÚ
error_coder   r   r   r   r      s   „ ñð
 ×*Ñ*�Jr   r   c                  ó(   — e Zd ZdZej
                  Zy)ÚFrameTooLargeErrorzL
    The frame that we tried to send or that we received was too large.
    N©r	   r
   r   r   r   ÚFRAME_SIZE_ERRORr   r   r   r   r   r      s   „ ñð
 ×,Ñ,�Jr   r   c                  ó(   — e Zd ZdZej
                  Zy)ÚFrameDataMissingErrorzW
    The frame that we received is missing some data.

    .. versionadded:: 2.0.0
    Nr   r   r   r   r   r   $   s   „ ñð ×,Ñ,�Jr   r   c                  ó   — e Zd ZdZy)ÚTooManyStreamsErrorzb
    An attempt was made to open a stream that would lead to too many concurrent
    streams.
    Nr   r   r   r   r   r   /   s   „ òr   r   c                  ó(   — e Zd ZdZej
                  Zy)ÚFlowControlErrorz@
    An attempted action violates flow control constraints.
    N)r	   r
   r   r   r   ÚFLOW_CONTROL_ERRORr   r   r   r   r   r   7   s   „ ñð
 ×.Ñ.�Jr   r   c                  ó    — e Zd ZdZdd„Zdd„Zy)ÚStreamIDTooLowErrorz„
    An attempt was made to open a stream that had an ID that is lower than the
    highest ID we have seen on this connection.
    c                ó    — || _         || _        y ©N©Ú	stream_idÚmax_stream_id)Úselfr$   r%   s      r   Ú__init__zStreamIDTooLowError.__init__F   s   € à"ˆŒð +ˆÕr   c                ó:   — d| j                   › d| j                  › �S )NzStreamIDTooLowError: z is lower than r#   ©r&   s    r   Ú__str__zStreamIDTooLowError.__str__M   s!   € Ø& t§~¡~Ð&6°oÀd×FXÑFXÐEYÐZÐZr   N)r$   Úintr%   r+   ÚreturnÚNone©r,   Ústr©r	   r
   r   r   r'   r*   r   r   r   r    r    @   s   „ ñó
+ô[r   r    c                  ó   — e Zd ZdZy)ÚNoAvailableStreamIDErrorzˆ
    There are no available stream IDs left to the connection. All stream IDs
    have been exhausted.

    .. versionadded:: 2.0.0
    Nr   r   r   r   r2   r2   Q   s   „ òr   r2   c                  ó   — e Zd ZdZdd„Zy)ÚNoSuchStreamErrorzÂ
    A stream-specific action referenced a stream that does not exist.

    .. versionchanged:: 2.0.0
       Became a subclass of :class:`ProtocolError
       <h2.exceptions.ProtocolError>`
    c                ó   — || _         y r"   )r$   ©r&   r$   s     r   r'   zNoSuchStreamError.__init__d   s	   € à"ˆ�r   N©r$   r+   r,   r-   ©r	   r
   r   r   r'   r   r   r   r4   r4   [   s   „ ñô#r   r4   c                  ó   — e Zd ZdZdd„Zy)ÚStreamClosedErrorzÙ
    A more specific form of
    :class:`NoSuchStreamError <h2.exceptions.NoSuchStreamError>`. Indicates
    that the stream has since been closed, and that all state relating to that
    stream has been removed.
    c                óJ   — || _         t        j                  | _        g | _        y r"   )r$   r   ÚSTREAM_CLOSEDr   Ú_eventsr6   s     r   r'   zStreamClosedError.__init__q   s!   € à"ˆŒô %×2Ñ2ˆŒð ˆ�r   Nr7   r8   r   r   r   r:   r:   i   s   „ ñô	r   r:   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )ÚInvalidSettingsValueErrorz\
    An attempt was made to set an invalid Settings value.

    .. versionadded:: 2.0.0
    c                ó2   •— t         ‰| �  |«       || _        y r"   )Úsuperr'   r   )r&   Úmsgr   Ú	__class__s      €r   r'   z"InvalidSettingsValueError.__init__„   s   ø€ Ü‰Ñ˜ÔØ$ˆ�r   )rB   r/   r   r   r,   r-   )r	   r
   r   r   r'   Ú__classcell__)rC   s   @r   r?   r?   }   s   ø„ ñ÷%ñ %r   r?   c                  ó    — e Zd ZdZdd„Zdd„Zy)ÚInvalidBodyLengthErrorz{
    The remote peer sent more or less data that the Content-Length header
    indicated.

    .. versionadded:: 2.0.0
    c                ó    — || _         || _        y r"   ©Úexpected_lengthÚactual_length)r&   ÚexpectedÚactuals      r   r'   zInvalidBodyLengthError.__init__‘   s   € Ø'ˆÔØ#ˆÕr   c                ó:   — d| j                   › d| j                  › �S )Nz!InvalidBodyLengthError: Expected z bytes, received rH   r)   s    r   r*   zInvalidBodyLengthError.__str__•   s%   € Ø2°4×3GÑ3GÐ2HÐHYÐZ^×ZlÑZlÐYmÐnÐnr   N)rK   r+   rL   r+   r,   r-   r.   r0   r   r   r   rF   rF   ‰   s   „ ñó$ôor   rF   c                  ó   — e Zd ZdZy)ÚUnsupportedFrameErrorz¸
    The remote peer sent a frame that is unsupported in this context.

    .. versionadded:: 2.1.0

    .. versionchanged:: 4.0.0
       Removed deprecated KeyError parent class.
    Nr   r   r   r   rO   rO   ™   s   „ òr   rO   c                  ó   — e Zd ZdZy)ÚRFC1122Errora—  
    Emitted when users attempt to do something that is literally allowed by the
    relevant RFC, but is sufficiently ill-defined that it's unwise to allow
    users to actually do it.

    While there is some disagreement about whether or not we should be liberal
    in what accept, it is a truth universally acknowledged that we should be
    conservative in what emit.

    .. versionadded:: 2.4.0
    Nr   r   r   r   rQ   rQ   ¥   s   „ ò
r   rQ   c                  ó(   — e Zd ZdZej
                  Zy)ÚDenialOfServiceErrora@  
    Emitted when the remote peer exhibits a behaviour that is likely to be an
    attempt to perform a Denial of Service attack on the implementation. This
    is a form of ProtocolError that carries a different error code, and allows
    more easy detection of this kind of behaviour.

    .. versionadded:: 2.5.0
    N)r	   r
   r   r   r   ÚENHANCE_YOUR_CALMr   r   r   r   rS   rS   ¶   s   „ ñð ×-Ñ-�Jr   rS   N)r   Ú
__future__r   Úerrorsr   Ú	Exceptionr   r   r   r   r   r   r    r2   r4   r:   Ú
ValueErrorr?   rF   rO   rQ   rS   r   r   r   ú<module>rY      sÍ   ðñõ #å ôˆiô ô+�Gô +ô-˜ô -ô-˜Mô -ô˜-ô ô/�}ô /ô[˜-ô [ô"˜}ô ô#˜ô #ôÐ)ô ô(	% ¨zô 	%ôo˜]ô oô ˜Mô ô�7ô ô".˜=õ .r   