Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
exceptions.cpython-313.pyc41 linesDownload Raw Back to __pycache__
1�

2��j����SrSSKJr SSKJrJr SSKJr SSK	J3r \(a4SSKJ
r
JrJr "SS	\5r"S5S\5r"SS
\\5r6"SS\5r"SS\5r"SS\5r"SS\5r"SS\5r"SS\\5r"SS\5r"SS\5r"SS\5r"S S!\\5r"S"S#\\5r"S$S%\\5r"S&S'\\5r"S(S)\5r "S*S+\5r!"S,S-\\5r""S.S/\\#5r$"S0S1\5r%"S2S3\5r&"S4S5\'5r("S6S7\(\)5r*"S8S9\(5r+g:);z`7requests.exceptions8~~~~~~~~~~~~~~~~~~~9 10This module contains the set of Requests' exceptions.11�)�annotations)�
TYPE_CHECKING�Any)�	HTTPError�)�JSONDecodeError)�PreparedRequest�Request�Responsec�F^�\rSrSr%SrS\S'S\S'S	U4SjjrSrU=r$)12�RequestException�zLThere was an ambiguous exception that occurred while handling your13request.14zResponse | None�responsez Request | PreparedRequest | None�requestc��>�URSS5nX0lURSS5UlUb3UR(d"[US5(aURUl[TU]"U0UD6 g)zBInitialize RequestException with `request` and `response` objects.rNr)�poprr�hasattr�super�__init__)�self�args�kwargsr�	__class__s    ��YD:\code\apps\devtools\python\user_packages\Python313\site-packages\requests/exceptions.pyr�RequestException.__init__sa���$*�J�J�z�4�$@�� �
��z�z�)�T�2����������9�9U�9U�#�+�+�D�L�
���$�)�&�)�)rr�rrrr�return�None)	�__name__�15__module__�__qualname__�__firstlineno__�__doc__�__annotations__r�__static_attributes__�
__classcell__)rs@rr
r
s ������
-�-�*�*rr
c��\rSrSrSrSrg)�InvalidJSONError�&zA JSON error occurred.�N�r r!r"r#r$r&r+rrr)r)&��� rr)c�,�\rSrSrSrSSjrSSjrSrg)	r�*z"Couldn't decode the text into jsonc�z�[R"U/UQ76 [R"U/URQ70UD6 g)z�16Construct the JSONDecodeError instance first with all17args. Then use it's args to construct the IOError so that18the json specific args aren't used as IOError specific args19and the error message from JSONDecodeError is preserved.20N)�CompatJSONDecodeErrorrr)r)rrrs   rr�JSONDecodeError.__init__-s3��	�&�&�t�3�d�3��!�!�$�=����=�f�=rc�.�[R"U5$)a121The __reduce__ method called when pickling the object must22be the one from the JSONDecodeError (be it json/simplejson)23as it expects all the arguments for instantiation, not just24one like the IOError, and the MRO would by default call the25__reduce__ method from the IOError due to the inheritance order.26)r1�27__reduce__)rs rr4�JSONDecodeError.__reduce__7s��%�/�/��5�5rr+Nr)rztuple[Any, ...] | str)r r!r"r#r$rr4r&r+rrrr*s��,�>�6rrc��\rSrSrSrSrg)r�BzAn HTTP error occurred.r+Nr,r+rrrrB���!rrc��\rSrSrSrSrg)�ConnectionError�FzA Connection error occurred.r+Nr,r+rrr:r:Fs��&rr:c��\rSrSrSrSrg)�28ProxyError�JzA proxy error occurred.r+Nr,r+rrr=r=Jr8rr=c��\rSrSrSrSrg)�SSLError�NzAn SSL error occurred.r+Nr,r+rrr@r@Nr-rr@c��\rSrSrSrSrg)�Timeout�Rz�The request timed out.29 30Catching this error will catch both31:exc:`~requests.exceptions.ConnectTimeout` and32:exc:`~requests.exceptions.ReadTimeout` errors.33r+Nr,r+rrrCrCRs��rrCc��\rSrSrSrSrg)�ConnectTimeout�[zzThe request timed out while trying to connect to the remote server.34 35Requests that produced this error are safe to retry.36r+Nr,r+rrrFrF[s��rrFc��\rSrSrSrSrg)�ReadTimeout�bz@The server did not send any data in the allotted amount of time.r+Nr,r+rrrIrIb���JrrIc��\rSrSrSrSrg)�URLRequired�fz*A valid URL is required to make a request.r+Nr,r+rrrMrMfs��4rrMc��\rSrSrSrSrg)�TooManyRedirects�jzToo many redirects.r+Nr,r+rrrPrPjs��rrPc��\rSrSrSrSrg)�
MissingSchema�nz/The URL scheme (e.g. http or https) is missing.r+Nr,r+rrrSrSns��9rrSc��\rSrSrSrSrg)�
InvalidSchema�rz9The URL scheme provided is either invalid or unsupported.r+Nr,r+rrrVrVrs��CrrVc��\rSrSrSrSrg)�37InvalidURL�vz%The URL provided was somehow invalid.r+Nr,r+rrrYrYvs��/rrYc��\rSrSrSrSrg)�
InvalidHeader�zz.The header value provided was somehow invalid.r+Nr,r+rrr\r\zs��8rr\c��\rSrSrSrSrg)�InvalidProxyURL�~z"The proxy URL provided is invalid.r+Nr,r+rrr_r_~���,rr_c��\rSrSrSrSrg)�ChunkedEncodingError�z?The server declared chunked encoding but sent an invalid chunk.r+Nr,r+rrrcrc�s��Irrcc��\rSrSrSrSrg)�ContentDecodingError�z"Failed to decode response content.r+Nr,r+rrrfrf�rarrfc��\rSrSrSrSrg)�StreamConsumedError�z3The content for this response was already consumed.r+Nr,r+rrriri�s��=rric��\rSrSrSrSrg)�38RetryError�zCustom retries logic failedr+Nr,r+rrrlrl�s��%rrlc��\rSrSrSrSrg)�UnrewindableBodyError�z;Requests encountered an error when trying to rewind a body.r+Nr,r+rrroro�s��Erroc��\rSrSrSrSrg)�RequestsWarning�zBase warning for Requests.r+Nr,r+rrrrrr�s��$rrrc��\rSrSrSrSrg)�FileModeWarning�zJA file was opened in text mode, but Requests determined its binary length.r+Nr,r+rrruru�s��Trruc��\rSrSrSrSrg)�RequestsDependencyWarning�z@An imported dependency doesn't match the expected version range.r+Nr,r+rrrxrx�rKrrxN),r$�39__future__r�typingrr�urllib3.exceptionsr�
BaseHTTPError�compatrr1�modelsr	r40r�IOErrorr
r)r:r=r@rCrFrIrMrP�41ValueErrorrSrVrYr\r_rcrf�	TypeErrorrirlro�Warningrr�DeprecationWarningrurxr+rr�<module>r�s}���#�%�9�<��:�:�*�w�*�$!�'�!�6�&�(=�6�0"� �"�'�&�'�"��"�!��!�����_�g��K�'�K�5�"�5��'��:�$�j�:�D�$�j�D�0�!�:�0�9�$�j�9�-�j�-�J�+�J�-�+�]�-�>�*�I�>�&�!�&�F�,�F�%�g�%�U�o�'9�U�K��Kr
codekingpro/portable-devtools · Team Ai