Files
intellecton/venv/lib/python3.12/site-packages/requests/__pycache__/exceptions.cpython-312.pyc
T

40 lines
7.8 KiB
Plaintext
Raw Normal View History

Ë
ãóŒdZddlmZddlmZmZddlmZddl m
Z er
ddl m
Z
mZmZGdd e«ZGd
d e«ZGd d
ee «Z
Gdde«ZGdde«ZGdde«ZGdde«ZGdde«ZGddee«ZGdde«ZGdde«ZGdde«ZGd „d!ee«ZGd"„d#ee«ZGd$„d%ee«ZGd&„d'ee«ZGd(„d)e«Z Gd*„d+e«Z!Gd,„d-ee«Z"Gd.„d/ee#«Z$Gd0„d1e«Z%Gd2„d3e«Z&Gd4„d5e'«Z(Gd6„d7e(e)«Z*Gd8„d9e(«Z+y:);z`
requests.exceptions
~~~~~~~~~~~~~~~~~~~
This module contains the set of Requests' exceptions.
é)Ú annotations)Ú
TYPE_CHECKINGÚAny)Ú HTTPErroré)ÚJSONDecodeError)ÚPreparedRequestÚRequestÚResponsecó:eZdZUdZded<ded<dˆfd ZˆxZS)ÚRequestExceptionzTThere was an ambiguous exception that occurred while handling your
request.
zResponse | NoneÚresponsez Request | PreparedRequest | NoneÚrequestcóÚ|jdd«}||_|jdd«|_|)|jst|d«r|j|_t ||i|¤Žy)zBInitialize RequestException with `request` and `response` objects.rNr)ÚpoprrÚhasattrÚsuperÚ__init__)ÚselfÚargsÚkwargsrÚ __class__s €úV/home/antigravity/intellecton/venv/lib/python3.12/site-packages/requests/exceptions.pyrzRequestException.__init__s`ø€à$*§J¡J¨z¸4Ó$@ˆØ ˆŒ
Ø—z‘z )¨TÓŒ Ø Ð ¨¯ ª ¼ÀÈ9Ô9UØ+ˆDŒLÜ
ј) ©rrrrÚreturnÚNone)Ú__name__Ú
__module__Ú __qualname__Ú__doc__Ú__annotations__rÚ
__classcell__)rs@rr
r
s ø…ñðÓØ
*rr
cóeZdZdZy)ÚInvalidJSONErrorzA JSON error occurred.N©rrr r!©rrr%r%&óÚ rr%có eZdZdZddZddZy)rz"Couldn't decode the text into jsoncóvtj|g|¢­Žtj|g|j¢­i|¤Žy)a
Construct the JSONDecodeError instance first with all
args. Then use it's args to construct the IOError so that
the json specific args aren't used as IOError specific args
and the error message from JSONDecodeError is preserved.
N)ÚCompatJSONDecodeErrorrr%r)rrrs rrzJSONDecodeError.__init__-s3ô ×& 3¨dÓ×! $Я©Ò=°fÓ=rcó,tj|«S)aa
The __reduce__ method called when pickling the object must
be the one from the JSONDecodeError (be it json/simplejson)
as it expects all the arguments for instantiation, not just
one like the IOError, and the MRO would by default call the
__reduce__ method from the IOError due to the inheritance order.
)r+Ú
__reduce__)rs rr-zJSONDecodeError.__reduce__7sô%×Ó5rNr)rztuple[Any, ...] | str)rrr r!rr-r'rrrr*sÙ6rrcóeZdZdZy)rzAn HTTP error occurred.Nr&r'rrrrBóÚ!rrcóeZdZdZy)ÚConnectionErrorzA Connection error occurred.Nr&r'rrr1r1FsÚ&rr1cóeZdZdZy)Ú
ProxyErrorzA proxy error occurred.Nr&r'rrr3r3Jr/rr3cóeZdZdZy)ÚSSLErrorzAn SSL error occurred.Nr&r'rrr5r5Nr(rr5cóeZdZdZy)ÚTimeoutz«The request timed out.
Catching this error will catch both