
                         X   d Z ddlmZ ddlmZ  G d de      Z G d de      Z	 G d	 d
e	e      Z G d de      Z G d de      Z
 G d de
      Z G d de
      Z G d de      Z G d de
e      Z G d de      Z G d de      Z G d de      Z G d dee      Z G d d ee      Z G d! d"ee      Z G d# d$ee      Z G d% d&e      Z G d' d(e      Z G d) d*ee      Z G d+ d,ee      Z G d- d.e      Z G d/ d0e      Z G d1 d2e      Z G d3 d4ee       Z! G d5 d6e      Z"y7)8z`
requests.exceptions
~~~~~~~~~~~~~~~~~~~

This module contains the set of Requests' exceptions.
    )	HTTPError   )JSONDecodeErrorc                   "     e Zd ZdZ fdZ xZS )RequestExceptionzTThere was an ambiguous exception that occurred while handling your
    request.
    c                     |j                  dd      }|| _        |j                  dd      | _        |3| j                  s't        |d      r| j                  j                  | _        t	        t
        |   |i | y)zBInitialize RequestException with `request` and `response` objects.responseNrequest)popr	   r
   hasattrsuperr   __init__)selfargskwargsr	   	__class__s       .platform/bq/third_party/requests/exceptions.pyr   zRequestException.__init__   sh    ::j$/ zz)T2 ),==00DL.??    )__name__
__module____qualname____doc__r   __classcell__)r   s   @r   r   r      s    @ @r   r   c                       e Zd ZdZy)InvalidJSONErrorzA JSON error occurred.Nr   r   r   r    r   r   r   r           r   r   c                       e Zd ZdZy)r   z"Couldn't decode the text into jsonNr   r   r   r   r   r   #       ,r   r   c                       e Zd ZdZy)r   zAn HTTP error occurred.Nr   r   r   r   r   r   '       !r   r   c                       e Zd ZdZy)ConnectionErrorzA Connection error occurred.Nr   r   r   r   r$   r$   +   s    &r   r$   c                       e Zd ZdZy)
ProxyErrorzA proxy error occurred.Nr   r   r   r   r&   r&   /   r"   r   r&   c                       e Zd ZdZy)SSLErrorzAn SSL error occurred.Nr   r   r   r   r(   r(   3   r   r   r(   c                       e Zd ZdZy)TimeoutzThe 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*   7   s    r   r*   c                       e Zd ZdZy)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,   @   s    r   r,   c                       e Zd ZdZy)ReadTimeoutz@The server did not send any data in the allotted amount of time.Nr   r   r   r   r.   r.   G       Jr   r.   c                       e Zd ZdZy)URLRequiredz*A valid URL is required to make a request.Nr   r   r   r   r1   r1   K   s    4r   r1   c                       e Zd ZdZy)TooManyRedirectszToo many redirects.Nr   r   r   r   r3   r3   O   s    r   r3   c                       e Zd ZdZy)MissingSchemaz/The URL scheme (e.g. http or https) is missing.Nr   r   r   r   r5   r5   S   s    9r   r5   c                       e Zd ZdZy)InvalidSchemaz9The URL scheme provided is either invalid or unsupported.Nr   r   r   r   r7   r7   W   s    Cr   r7   c                       e Zd ZdZy)
InvalidURLz%The URL provided was somehow invalid.Nr   r   r   r   r9   r9   [   s    /r   r9   c                       e Zd ZdZy)InvalidHeaderz.The header value provided was somehow invalid.Nr   r   r   r   r;   r;   _   s    8r   r;   c                       e Zd ZdZy)InvalidProxyURLz"The proxy URL provided is invalid.Nr   r   r   r   r=   r=   c   r    r   r=   c                       e Zd ZdZy)ChunkedEncodingErrorz?The server declared chunked encoding but sent an invalid chunk.Nr   r   r   r   r?   r?   g   s    Ir   r?   c                       e Zd ZdZy)ContentDecodingErrorz"Failed to decode response content.Nr   r   r   r   rA   rA   k   r    r   rA   c                       e Zd ZdZy)StreamConsumedErrorz3The content for this response was already consumed.Nr   r   r   r   rC   rC   o   s    =r   rC   c                       e Zd ZdZy)
RetryErrorzCustom retries logic failedNr   r   r   r   rE   rE   s   s    %r   rE   c                       e Zd ZdZy)UnrewindableBodyErrorz;Requests encountered an error when trying to rewind a body.Nr   r   r   r   rG   rG   w   s    Er   rG   c                       e Zd ZdZy)RequestsWarningzBase warning for Requests.Nr   r   r   r   rI   rI   }   s    $r   rI   c                       e Zd ZdZy)FileModeWarningzJA file was opened in text mode, but Requests determined its binary length.Nr   r   r   r   rK   rK      s    Tr   rK   c                       e Zd ZdZy)RequestsDependencyWarningz@An imported dependency doesn't match the expected version range.Nr   r   r   r   rM   rM      r/   r   rM   N)#r   urllib3.exceptionsr   BaseHTTPErrorcompatr   CompatJSONDecodeErrorIOErrorr   r   r$   r&   r(   r*   r,   r.   r1   r3   
ValueErrorr5   r7   r9   r;   r=   r?   rA   	TypeErrorrC   rE   rG   WarningrI   DeprecationWarningrK   rM   r   r   r   <module>rW      sp   : <@w @ !' !-&(= -"  "'& '" "! ! _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 Kr   