§
    ±Û”a“  ã                   ó¤  — d Z eZg d¢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¦  «        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¦  «        Z G d„ de¦  «        Z G d„ de
¦  «        Zd„ ZdS ) zlazr.restfulclient errors.)Ú
BadRequestÚConflictÚClientErrorÚCredentialsErrorÚCredentialsFileErrorÚ	HTTPErrorÚMethodNotAllowedÚNotFoundÚPreconditionFailedÚRestfulErrorÚResponseErrorÚServerErrorÚUnauthorizedÚUnexpectedResponseErrorc                   ó   — e Zd ZdZdS )r   z2Base error for the lazr.restfulclient API library.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    ú;/usr/lib/python3/dist-packages/lazr/restfulclient/errors.pyr   r   (   s   € € € € € Ø<Ð<Ð<Ð<r   r   c                   ó   — e Zd ZdZdS )r   z&Base credentials/authentication error.Nr   r   r   r   r   r   ,   s   € € € € € Ø0Ð0Ð0Ð0r   r   c                   ó   — e Zd ZdZdS )r   zError in credentials file.Nr   r   r   r   r   r   0   s   € € € € € Ø$Ð$Ð$Ð$r   r   c                   ó   — e Zd ZdZd„ ZdS )r   zError in response.c                 óV   — t                                | ¦  «         || _        || _        d S )N)r   Ú__init__ÚresponseÚcontent)Úselfr   r   s      r   r   zResponseError.__init__7   s(   € Ý×Ò˜dÑ#Ô#Ð#Ø ˆŒØˆŒˆˆr   N)r   r   r   r   r   r   r   r   r   r   4   s)   € € € € € ØÐðð ð ð ð r   r   c                   ó   — e Zd ZdZd„ ZdS )r   z$An unexpected response was received.c                 ó8   — | j         j        ›d| j         j        ›�S )Nú: )r   ÚstatusÚreason)r    s    r   Ú__str__zUnexpectedResponseError.__str__@   s    € Øœ=Ô/Ð/Ð/°´Ô1EÐ1EÐFÐFr   N©r   r   r   r   r&   r   r   r   r   r   =   s.   € € € € € Ø.Ð.ðGð Gð Gð Gð Gr   r   c                   ó   — e Zd ZdZd„ ZdS )r   z+An HTTP non-2xx response code was received.c           	      óØ   — d                      d„ t          | j                             ¦   «         ¦  «        D ¦   «         ¦  «        }d| j        j        ›d| j        j        ›d|›d| j        ›d�	S )z9Show the error code, response headers, and response body.ú
c                 ó   — g | ]}d |z  ‘ŒS )z%s: %sr   )Ú.0Úpairs     r   ú
<listcomp>z%HTTPError.__str__.<locals>.<listcomp>J   s   € ÐGÐGÐG ˆX˜‰_ÐGÐGÐGr   zHTTP Error r#   z
Response headers:
---
z
---
Response body:
---
z
---
)ÚjoinÚsortedr   Úitemsr$   r%   r   )r    Úheaderss     r   r&   zHTTPError.__str__G   su   € à—)’)ØGÐG­°´×0CÒ0CÑ0EÔ0EÑ)FÔ)FÐGÑGÔGñ
ô 
ˆˆð Œ]Ô!Ð!Ð! 4¤=Ô#7Ð#7Ð#7¸¸¸À$Ä,À,À,ð	Pð 	Pr   Nr'   r   r   r   r   r   D   s.   € € € € € Ø5Ð5ð	Pð 	Pð 	Pð 	Pð 	Pr   r   c                   ó   — e Zd ZdZdS )r   z.An exception representing a client-side error.Nr   r   r   r   r   r   S   ó   € € € € € Ø8Ð8Ð8Ð8r   r   c                   ó   — e Zd ZdZdS )r   z4An exception representing an authentication failure.Nr   r   r   r   r   r   W   s   € € € € € Ø>Ð>Ð>Ð>r   r   c                   ó   — e Zd ZdZdS )r	   z1An exception representing a nonexistent resource.Nr   r   r   r   r	   r	   [   s   € € € € € Ø;Ð;Ð;Ð;r   r	   c                   ó   — e Zd ZdZdS )r   zœAn exception raised when you use an unsupported HTTP method.

    This is most likely because you tried to delete a resource that
    can't be deleted.
    Nr   r   r   r   r   r   _   s   € € € € € ðð ð ð r   r   c                   ó   — e Zd ZdZdS )r   z:An exception representing a problem with a client request.Nr   r   r   r   r   r   g   s   € € € € € ØDÐDÐDÐDr   r   c                   ó   — e Zd ZdZdS )r   z9An exception representing a conflict with another client.Nr   r   r   r   r   r   k   s   € € € € € ØCÐCÐCÐCr   r   c                   ó   — e Zd ZdZdS )r
   zëAn exception representing the failure of a conditional PUT/PATCH.

    The most likely explanation is that another client changed this
    object while you were working on it, and your version of the
    object is now out of date.
    Nr   r   r   r   r
   r
   o   s   € € € € € ðð ð ð r   r
   c                   ó   — e Zd ZdZdS )r   z.An exception representing a server-side error.Nr   r   r   r   r   r   x   r4   r   r   c                 ó0  — t           t          t          t          t          t
          dœ}| j        dz  dk    rdS |                     | j        t          ¦  «        }|t          u r+| j        dz  dk    rt          }n| j        dz  dk    rt          } || |¦  «        S )zäTurn an HTTP response into an HTTPError subclass.

    :return: None if the response code is 1xx, 2xx or 3xx. Otherwise,
    an instance of an appropriate HTTPError subclass (or HTTPError
    if nothing else is appropriate.
    )i�  i‘  i”  i•  i™  iœ  éd   é   Né   é   )r   r   r	   r   r   r
   r$   Úgetr   r   r   )r   r   Úhttp_errors_by_status_codeÚclss       r   Ú	error_forrD   |   s    € õ ÝÝÝÝÝð"ð "Ðð „˜#Ñ Ò"Ð"àˆtà(×,Ò,¨X¬_½iÑHÔHˆØ
�iÐÐØŒ?˜cÑ! QÒ&Ð&ÝˆCˆCØŒ_ Ñ# qÒ(Ð(ÝˆCØˆ3ˆx˜Ñ!Ô!Ð!r   N)r   ÚtypeÚ__metaclass__Ú__all__Ú	Exceptionr   r   r   r   r   r   r   r   r	   r   r   r   r
   r   rD   r   r   r   ú<module>rI      s©  ðð& !Ð  à€ðð ð €ð$=ð =ð =ð =ð =�9ñ =ô =ð =ð1ð 1ð 1ð 1ð 1�|ñ 1ô 1ð 1ð%ð %ð %ð %ð %Ð+ñ %ô %ð %ðð ð ð ð �Lñ ô ð ðGð Gð Gð Gð G˜mñ Gô Gð GðPð Pð Pð Pð P�ñ Pô Pð Pð9ð 9ð 9ð 9ð 9�)ñ 9ô 9ð 9ð?ð ?ð ?ð ?ð ?�;ñ ?ô ?ð ?ð<ð <ð <ð <ð <ˆ{ñ <ô <ð <ðð ð ð ð �{ñ ô ð ðEð Eð Eð Eð E�ñ Eô Eð EðDð Dð Dð Dð Dˆ{ñ Dô Dð Dðð ð ð ð ˜ñ ô ð ð9ð 9ð 9ð 9ð 9�)ñ 9ô 9ð 9ð"ð "ð "ð "ð "r   