Repository URL to install this package:
Version:
0.1.4 ▾
|
odigos
/
etc
/
odigos-vmagent
/
instrumentations
/
python
/
requests
/
__pycache__
/
exceptions.cpython-311.pyc
|
---|
§ O>g¤ ã óð d Z ddlmZ ddlmZ G d de¦ « Z G d de¦ « Z G d d e e¦ « Z G d de¦ « Z G d de¦ « Z G d de ¦ « Z G d de ¦ « Z G d de¦ « Z G d de e ¦ « Z G d de ¦ « Z G d de¦ « Z G d de¦ « Z G d dee¦ « Z G d d ee¦ « Z G d! d"ee¦ « Z G d# d$ee¦ « Z G d% d&e¦ « Z G d' d(e¦ « Z G d) d*ee¦ « Z G d+ d,ee¦ « Z G d- d.e¦ « Z G d/ d0e¦ « Z G d1 d2e¦ « Z G d3 d4ee ¦ « Z! G d5 d6e¦ « Z"d7S )8z` requests.exceptions ~~~~~~~~~~~~~~~~~~~ This module contains the set of Requests' exceptions. é )Ú HTTPErroré )ÚJSONDecodeErrorc ó" e Zd ZdZ fdZ xZS )ÚRequestExceptionzTThere was an ambiguous exception that occurred while handling your request. c óþ | dd¦ « }|| _ | dd¦ « | _ |(| j s!t |d¦ « r| j j | _ t ¦ « j |i |¤ dS )zBInitialize RequestException with `request` and `response` objects.ÚresponseNÚrequest)Úpopr r ÚhasattrÚsuperÚ__init__)ÚselfÚargsÚkwargsr Ú __class__s ú:/tmp/pip-target-qlpkiub5/lib/python/requests/exceptions.pyr zRequestException.__init__ s| ø à::j¨$Ñ/Ô/Ø Øzz )¨TÑ2Ô2ØÐ¨¬Ð½ÀÈ9Ñ9UÔ9UÐØ=Ô0DLØÔ$Ð) &Ð)Ð)Ð)Ð)Ð)ó )Ú__name__Ú __module__Ú__qualname__Ú__doc__r Ú __classcell__)r s @r r r sB ø ðð ð*ð *ð *ð *ð *ð *ð *ð *ð *r r c ó e Zd ZdZdS )ÚInvalidJSONErrorzA JSON error occurred.N©r r r r © r r r r ó Ø Ð Ð Ð r r c ó e Zd ZdZd Zd ZdS )r z"Couldn't decode the text into jsonc ó^ t j | g|¢R t j | g| j ¢R i |¤ dS )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)ÚCompatJSONDecodeErrorr r r )r r r s r r zJSONDecodeError.__init__" sF õ Ô& tÐ3¨dÐ3Ð3Ð3Ð3ÝÔ! $Ð=¨¬Ð=Ð=Ð=°fÐ=Ð=Ð=Ð=Ð=r c ó* t j | ¦ « 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__)r s r r# zJSONDecodeError.__reduce__, s õ %Ô/°Ñ5Ô5Ð5r N)r r r r r r# r r r r r s8 Ø,Ð,ð>ð >ð >ð6ð 6ð 6ð 6ð 6r r c ó e Zd ZdZdS )r zAn HTTP error occurred.Nr r r r r r 7 ó Ø!Ð!Ð!Ð!r r c ó e Zd ZdZdS )ÚConnectionErrorzA Connection error occurred.Nr r r r r' r' ; s Ø&Ð&Ð&Ð&r r' c ó e Zd ZdZdS )Ú ProxyErrorzA proxy error occurred.Nr r r r r) r) ? r% r r) c ó e Zd ZdZdS )ÚSSLErrorzAn SSL error occurred.Nr r r r r+ r+ C r r r+ c ó e Zd ZdZdS )ÚTimeoutz«The request timed out. Catching this error will catch both :exc:`~requests.exceptions.ConnectTimeout` and :exc:`~requests.exceptions.ReadTimeout` errors. Nr r r r r- r- G s ðð ð ð r r- c ó e Zd ZdZdS )ÚConnectTimeoutzThe request timed out while trying to connect to the remote server. Requests that produced this error are safe to retry. Nr r r r r/ r/ P s ðð ð ð r r/ c ó e Zd ZdZdS )ÚReadTimeoutz@The server did not send any data in the allotted amount of time.Nr r r r r1 r1 W ó ØJÐJÐJÐJr r1 c ó e Zd ZdZdS )ÚURLRequiredz*A valid URL is required to make a request.Nr r r r r4 r4 [ s Ø4Ð4Ð4Ð4r r4 c ó e Zd ZdZdS )ÚTooManyRedirectszToo many redirects.Nr r r r r6 r6 _ s ØÐÐÐr r6 c ó e Zd ZdZdS )Ú MissingSchemaz/The URL scheme (e.g. http or https) is missing.Nr r r r r8 r8 c s Ø9Ð9Ð9Ð9r r8 c ó e Zd ZdZdS )Ú InvalidSchemaz9The URL scheme provided is either invalid or unsupported.Nr r r r r: r: g s ØCÐCÐCÐCr r: c ó e Zd ZdZdS )Ú InvalidURLz%The URL provided was somehow invalid.Nr r r r r<