§
    îŽ’j~  ã                  óÈ  — 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d#S )$z@
h2/exceptions
~~~~~~~~~~~~~

Exceptions for the HTTP/2 module.
é    )Úannotationsé   )Ú
ErrorCodesc                  ó   — e Zd ZdZdS )ÚH2ErrorzB
    The base class for all exceptions for the HTTP/2 module.
    N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    ú;C:\Projects\DSCons\.venv\Lib\site-packages\h2\exceptions.pyr   r      s   € € € € € ðð ð ð r   r   c                  ó    — e Zd ZdZej        ZdS )Ú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"   € € € € € ðð ð
 Ô*€J€J€Jr   r   c                  ó    — e Zd ZdZej        ZdS )Ú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"   € € € € € ðð ð
 Ô,€J€J€Jr   r   c                  ó    — e Zd ZdZej        ZdS )ÚFrameDataMissingErrorzW
    The frame that we received is missing some data.

    .. versionadded:: 2.0.0
    Nr   r   r   r   r   r   $   s"   € € € € € ðð ð Ô,€J€J€Jr   r   c                  ó   — e Zd ZdZdS )Ú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dS )ÚFlowControlErrorz@
    An attempted action violates flow control constraints.
    N)r	   r
   r   r   r   ÚFLOW_CONTROL_ERRORr   r   r   r   r   r   7   s"   € € € € € ðð ð
 Ô.€J€J€Jr   r   c                  ó"   — e Zd ZdZdd„Zdd	„Zd
S )Ú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.
    Ú	stream_idÚintÚmax_stream_idÚreturnÚNonec                ó"   — || _         || _        d S ©N©r!   r#   )Úselfr!   r#   s      r   Ú__init__zStreamIDTooLowError.__init__F   s   € à"ˆŒð +ˆÔÐÐr   Ústrc                ó&   — d| j         › d| j        › �S )NzStreamIDTooLowError: z is lower than r(   ©r)   s    r   Ú__str__zStreamIDTooLowError.__str__M   s   € ØZ t¤~ÐZÐZÀdÔFXÐZÐZÐZr   N)r!   r"   r#   r"   r$   r%   ©r$   r+   ©r	   r
   r   r   r*   r.   r   r   r   r    r    @   sL   € € € € € ðð ð
+ð +ð +ð +ð[ð [ð [ð [ð [ð [r   r    c                  ó   — e Zd ZdZdS )Ú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dS )	Ú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>`
    r!   r"   r$   r%   c                ó   — || _         d S 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   [   s2   € € € € € ðð ð#ð #ð #ð #ð #ð #r   r4   c                  ó   — e Zd ZdZdd„ZdS )	Ú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.
    r!   r"   r$   r%   c                óD   — || _         t          j        | _        g | _        d S r'   )r!   r   ÚSTREAM_CLOSEDr   Ú_eventsr6   s     r   r*   zStreamClosedError.__init__q   s"   € à"ˆŒõ %Ô2ˆŒð ˆŒˆˆr   Nr7   r8   r   r   r   r:   r:   i   s2   € € € € € ðð ð	ð 	ð 	ð 	ð 	ð 	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
    Úmsgr+   r   r   r$   r%   c                óX   •— t          ¦   «                              |¦  «         || _        d S r'   )Úsuperr*   r   )r)   r@   r   Ú	__class__s      €r   r*   z"InvalidSettingsValueError.__init__„   s&   ø€ Ý‰Œ×Ò˜ÑÔÐØ$ˆŒˆˆr   )r@   r+   r   r   r$   r%   )r	   r
   r   r   r*   Ú__classcell__)rC   s   @r   r?   r?   }   sG   ø€ € € € € ðð ð%ð %ð %ð %ð %ð %ð %ð %ð %ð %r   r?   c                  ó"   — e Zd ZdZdd„Zdd	„Zd
S )ÚInvalidBodyLengthErrorz{
    The remote peer sent more or less data that the Content-Length header
    indicated.

    .. versionadded:: 2.0.0
    Úexpectedr"   Úactualr$   r%   c                ó"   — || _         || _        d S r'   ©Úexpected_lengthÚactual_length)r)   rG   rH   s      r   r*   zInvalidBodyLengthError.__init__‘   s   € Ø'ˆÔØ#ˆÔÐÐr   r+   c                ó&   — d| j         › d| j        › �S )Nz!InvalidBodyLengthError: Expected z bytes, received rJ   r-   s    r   r.   zInvalidBodyLengthError.__str__•   s   € Øn°4Ô3GÐnÐnÐZ^ÔZlÐnÐnÐnr   N)rG   r"   rH   r"   r$   r%   r/   r0   r   r   r   rF   rF   ‰   sL   € € € € € ðð ð$ð $ð $ð $ðoð oð oð oð oð or   rF   c                  ó   — e Zd ZdZdS )Ú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dS )Ú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dS )Ú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"   € € € € € ðð ð Ô-€J€J€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ð oð oð o˜]ñ oô oð oð ð ð ð ð ˜Mñ ô ð ðð ð ð ð �7ñ ô ð ð".ð .ð .ð .ð .˜=ñ .ô .ð .ð .ð .r   