Ë
    }–;e“  ã                   óN  — 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y) zlazr.restfulclient errors.)Ú
BadRequestÚConflictÚClientErrorÚCredentialsErrorÚCredentialsFileErrorÚ	HTTPErrorÚMethodNotAllowedÚNotFoundÚPreconditionFailedÚRestfulErrorÚResponseErrorÚServerErrorÚUnauthorizedÚUnexpectedResponseErrorc                   ó   — e Zd ZdZy)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y)r   z&Base credentials/authentication error.Nr   r   r   r   r   r   ,   s   „ Ú0r   r   c                   ó   — e Zd ZdZy)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y)r   zError in response.c                 óJ   — t         j                  | «       || _        || _        y )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y)r   z$An unexpected response was received.c                 ó`   — | 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r   r   c                   ó   — e Zd ZdZd„ Zy)r   z+An HTTP non-2xx response code was received.c           	      ó  — dj                  t        | j                  j                  «       «      D �cg c]  }d|z  ‘Œ	 c}«      }d| j                  j                  ›d| j                  j
                  ›d|›d| j                  ›d�	S c c}w )z9Show the error code, response headers, and response body.ú
z%s: %szHTTP Error r#   z
Response headers:
---
z
---
Response body:
---
z
---
)ÚjoinÚsortedr   Úitemsr$   r%   r   )r    ÚpairÚheaderss      r   r&   zHTTPError.__str__G   si   € à—)‘)Ü)/°·±×0CÑ0CÓ0EÓ)FÖG ˆX˜‹_ÒGó
‰ð �]‰]×!Ó! 4§=¡=×#7Ó#7ºÀ$Ç,Ã,ð	Pð 	Pùò Hs   ±BNr'   r   r   r   r   r   D   s   „ Ù5ó	Pr   r   c                   ó   — e Zd ZdZy)r   z.An exception representing a client-side error.Nr   r   r   r   r   r   S   ó   „ Ú8r   r   c                   ó   — e Zd ZdZy)r   z4An exception representing an authentication failure.Nr   r   r   r   r   r   W   s   „ Ú>r   r   c                   ó   — e Zd ZdZy)r	   z1An exception representing a nonexistent resource.Nr   r   r   r   r	   r	   [   s   „ Ú;r   r	   c                   ó   — e Zd ZdZy)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y)r   z:An exception representing a problem with a client request.Nr   r   r   r   r   r   g   s   „ ÚDr   r   c                   ó   — e Zd ZdZy)r   z9An exception representing a conflict with another client.Nr   r   r   r   r   r   k   s   „ ÚCr   r   c                   ó   — e Zd ZdZy)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y)r   z.An exception representing a server-side error.Nr   r   r   r   r   r   x   r1   r   r   c                 ó.  — t         t        t        t        t        t
        dœ}| j                  dz  dk  ry|j                  | j                  t        «      }|t        u r1| 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_forrA   |   s‹   € ô ÜÜÜÜÜñ"Ðð ‡�˜#Ñ Ò"àà(×,Ñ,¨X¯_©_¼iÓHˆØ
ŒiÑØ�?‰?˜cÑ! QÒ&Ü‰CØ�_‰_ Ñ# qÒ(ÜˆCÙˆx˜Ó!Ð!r   N)r   ÚtypeÚ__metaclass__Ú__all__Ú	Exceptionr   r   r   r   r   r   r   r   r	   r   r   r   r
   r   rA   r   r   r   ú<module>rF      sÌ   ðñ& !à€ò€ô$=�9ô =ô1�|ô 1ô%Ð+ô %ô�Lô ôG˜mô GôP�ô Pô9�)ô 9ô?�;ô ?ô<ˆ{ô <ô�{ô ôE�ô EôDˆ{ô Dô˜ô ô9�)ô 9ó"r   