https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/lazr/restfulclient/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/lazr/restfulclient/__pycache__/errors.cpython-310.pyc
o

�3�O��@s�dZeZgd�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd	�d	e�ZGd
d�de�Z	Gdd
�d
e�Z
Gdd�de
�ZGdd�de�ZGdd�de�Z
Gdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de
�Zdd�Zd S)!zlazr.restfulclient errors.)�
BadRequest�Conflict�ClientError�CredentialsError�CredentialsFileError�	HTTPError�MethodNotAllowed�NotFound�PreconditionFailed�RestfulError�
ResponseError�ServerError�Unauthorized�UnexpectedResponseErrorc@�eZdZdZdS)r
z2Base error for the lazr.restfulclient API library.N��__name__�
__module__�__qualname__�__doc__�rr�;/usr/lib/python3/dist-packages/lazr/restfulclient/errors.pyr
(�r
c@r)rz&Base credentials/authentication error.Nrrrrrr,rrc@r)rzError in credentials file.Nrrrrrr0rrc@�eZdZdZdd�ZdS)rzError in response.cCst�|�||_||_dS)N)r
�__init__�response�content)�selfrrrrrr7s

zResponseError.__init__N)rrrrrrrrrr4�rc@r)rz$An unexpected response was received.cCsd|jj|jjfS)N�%s: %s)r�status�reason)rrrr�__str__@szUnexpectedResponseError.__str__N�rrrrr!rrrrr=rrc@r)rz+An HTTP non-2xx response code was received.cCs8d�dd�t|j���D��}d|jj|jj||jfS)z9Show the error code, response headers, and response body.�
cSsg|]}d|�qS)rr)�.0�pairrrr�
<listcomp>Is�z%HTTPError.__str__.<locals>.<listcomp>zIHTTP Error %s: %s
Response headers:
---
%s
---
Response body:
---
%s
---
)�join�sortedr�itemsrr r)r�headersrrrr!Gs
���zHTTPError.__str__Nr"rrrrrDrrc@r)rz.An exception representing a client-side error.NrrrrrrQrrc@r)r
z4An exception representing an authentication failure.Nrrrrrr
Urr
c@r)rz1An exception representing a nonexistent resource.NrrrrrrYrrc@r)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]rrc@r)rz:An exception representing a problem with a client request.Nrrrrrrerrc@r)rz9An exception representing a conflict with another client.Nrrrrrrirrc@r)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.
    Nrrrrrr	mrr	c@r)rz.An exception representing a server-side error.NrrrrrrurrcCsjttttttd�}|jddkrdS|�|jt�}|tur0|jddkr't	}n	|jddkr0t
}|||�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��)rr
rrrr	r�getrrr)rr�http_errors_by_status_code�clsrrr�	error_forys �	
r2N)r�type�
__metaclass__�__all__�	Exceptionr
rrrrrrr
rrrrr	rr2rrrr�<module>s$	


https://t.me/RX1948 - 2025