fXdZddlmZddlmZGddeZGddeZ Gd d e eZGd d eZGd deZ Gdde Z Gdde Z GddeZ Gdde e ZGdde ZGddeZGddeZGddeeZGdd eeZGd!d"eeZGd#d$eeZGd%d&eZGd'd(eZGd)d*eeZGd+d,eeZGd-d.eZGd/d0eZGd1d2eZGd3d4ee Z!Gd5d6eZ"y7)8z` requests.exceptions ~~~~~~~~~~~~~~~~~~~ This module contains the set of Requests' exceptions. ) HTTPError)JSONDecodeErrorc"eZdZdZfdZxZS)RequestExceptionzTThere was an ambiguous exception that occurred while handling your request. c|jdd}||_|jdd|_|3|js't|dr|jj|_t ||i|y)zBInitialize RequestException with `request` and `response` objects.responseNrequest)popr r hasattrsuper__init__)selfargskwargsr __class__s \/var/lib/jenkins/workspace/mettalog/venv/lib/python3.12/site-packages/requests/exceptions.pyrzRequestException.__init__sd::j$/  zz)T2   99U==00DL $)&))__name__ __module__ __qualname____doc__r __classcell__)rs@rrr s**rrceZdZdZy)InvalidJSONErrorzA JSON error occurred.Nrrrrrrrr rrceZdZdZdZdZy)rz"Couldn't decode the text into jsoncvtj|g|tj|g|ji|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)CompatJSONDecodeErrorrrr)rrrs rrzJSONDecodeError.__init__"s3 &&t3d3!!$==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__,s%//55rN)rrrrrr#rrrrrs,>6rrceZdZdZy)rzAn HTTP error occurred.Nrrrrrr7!rrceZdZdZy)ConnectionErrorzA Connection error occurred.Nrrrrr'r';s&rr'ceZdZdZy) ProxyErrorzA proxy error occurred.Nrrrrr)r)?r%rr)ceZdZdZy)SSLErrorzAn SSL error occurred.Nrrrrr+r+Crrr+ceZdZdZy)TimeoutzThe request timed out. Catching this error will catch both :exc:`~requests.exceptions.ConnectTimeout` and :exc:`~requests.exceptions.ReadTimeout` errors. Nrrrrr-r-Gsrr-ceZdZdZy)ConnectTimeoutzThe request timed out while trying to connect to the remote server. Requests that produced this error are safe to retry. Nrrrrr/r/Psrr/ceZdZdZy) ReadTimeoutz@The server did not send any data in the allotted amount of time.Nrrrrr1r1WJrr1ceZdZdZy) URLRequiredz*A valid URL is required to make a request.Nrrrrr4r4[s4rr4ceZdZdZy)TooManyRedirectszToo many redirects.Nrrrrr6r6_srr6ceZdZdZy) MissingSchemaz/The URL scheme (e.g. http or https) is missing.Nrrrrr8r8cs9rr8ceZdZdZy) InvalidSchemaz9The URL scheme provided is either invalid or unsupported.Nrrrrr:r:gsCrr:ceZdZdZy) InvalidURLz%The URL provided was somehow invalid.Nrrrrr<r<ks/rr<ceZdZdZy) InvalidHeaderz.The header value provided was somehow invalid.Nrrrrr>r>os8rr>ceZdZdZy)InvalidProxyURLz"The proxy URL provided is invalid.Nrrrrr@r@s,rr@ceZdZdZy)ChunkedEncodingErrorz?The server declared chunked encoding but sent an invalid chunk.NrrrrrCrCwsIrrCceZdZdZy)ContentDecodingErrorz"Failed to decode response content.NrrrrrErE{rArrEceZdZdZy)StreamConsumedErrorz3The content for this response was already consumed.NrrrrrGrGs=rrGceZdZdZy) RetryErrorzCustom retries logic failedNrrrrrIrIs%rrIceZdZdZy)UnrewindableBodyErrorz;Requests encountered an error when trying to rewind a body.NrrrrrKrKsErrKceZdZdZy)RequestsWarningzBase warning for Requests.NrrrrrMrMs$rrMceZdZdZy)FileModeWarningzJA file was opened in text mode, but Requests determined its binary length.NrrrrrOrOsTrrOceZdZdZy)RequestsDependencyWarningz@An imported dependency doesn't match the expected version range.NrrrrrQrQr2rrQN)#rurllib3.exceptionsr BaseHTTPErrorcompatrr!IOErrorrrr'r)r+r-r/r1r4r6 ValueErrorr8r:r<r>r@rCrE TypeErrorrGrIrKWarningrMDeprecationWarningrOrQrrrrZsn :< *w *!'!6&(=60" "'&'""!!_gK'K5"5':$j:D$jD0!:09$j9-j-J+J-+]->*I>&!&F,F%g%Uo'9UKKr