U î·êf¤ ã @ s d Z ddlmZ ddlmZ G dd„ deƒZG dd„ deƒZ G d d „ d e eƒZG dd„ deƒZG d d„ deƒZ G dd„ de ƒZG dd„ de ƒZG dd„ deƒZ G dd„ de e ƒZG dd„ de ƒZG dd„ deƒZG dd„ deƒZG dd„ deeƒZG dd „ d eeƒZG d!d"„ d"eeƒZG d#d$„ d$eeƒZG d%d&„ d&eƒZG d'd(„ d(eƒZG d)d*„ d*eeƒZG d+d,„ d,eeƒZG d-d.„ d.eƒZG d/d0„ d0eƒZG d1d2„ d2eƒZG d3d4„ d4ee ƒZ!G d5d6„ d6eƒZ"d7S )8z` requests.exceptions ~~~~~~~~~~~~~~~~~~~ This module contains the set of Requests' exceptions. é )Ú HTTPErroré )ÚJSONDecodeErrorc s e Zd ZdZ‡ fdd„Z‡ ZS )ÚRequestExceptionzTThere was an ambiguous exception that occurred while handling your request. c sT | dd¡}|| _| dd¡| _|dk rB| jsBt|dƒrB| jj| _tƒ j||Ž dS )zBInitialize RequestException with `request` and `response` objects.ÚresponseNÚrequest)Úpopr r ÚhasattrÚsuperÚ__init__)ÚselfÚargsÚkwargsr ©Ú __class__© úD/opt/alt/python38/lib/python3.8/site-packages/requests/exceptions.pyr s zRequestException.__init__)Ú__name__Ú __module__Ú__qualname__Ú__doc__r Ú __classcell__r r r r r s r c @ s e Zd ZdZdS )ÚInvalidJSONErrorzA JSON error occurred.N©r r r r r r r r r s r c @ s e Zd ZdZdd„ Zdd„ ZdS )r z"Couldn't decode the text into jsonc O s( t j| f|žŽ tj| f| jž|Ž 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 r r r r " s zJSONDecodeError.__init__c C s t | ¡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 r r r r , s zJSONDecodeError.__reduce__N)r r r r r r r r r r r s r c @ s e Zd ZdZdS )r zAn HTTP error occurred.Nr r r r r r 7 s r c @ s e Zd ZdZdS )ÚConnectionErrorzA Connection error occurred.Nr r r r r r ; s r c @ s e Zd ZdZdS )Ú ProxyErrorzA proxy error occurred.Nr r r r r r ? s r c @ s e Zd ZdZdS )ÚSSLErrorzAn SSL error occurred.Nr r r r r r C s r c @ s 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 c @ s e Zd ZdZdS )ÚConnectTimeoutz‚The 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 c @ s e Zd ZdZdS )ÚReadTimeoutz@The server did not send any data in the allotted amount of time.Nr r r r r r! W s r! c @ s e Zd ZdZdS )ÚURLRequiredz*A valid URL is required to make a request.Nr r r r r r" [ s r" c @ s e Zd ZdZdS )ÚTooManyRedirectszToo many redirects.Nr r r r r r# _ s r# c @ s e Zd ZdZdS )Ú MissingSchemaz/The URL scheme (e.g. http or https) is missing.Nr r r r r r$ c s r$ c @ s e Zd ZdZdS )Ú InvalidSchemaz9The URL scheme provided is either invalid or unsupported.Nr r r r r r% g s r% c @ s e Zd ZdZdS )Ú InvalidURLz%The URL provided was somehow invalid.Nr r r r r r&