HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/lazr/restfulclient/__pycache__/errors.cpython-38.pyc
U

�3�O��@sdZeZddddddddd	d
ddd
dgZGdd
�d
e�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�Z	Gdd�de�Z
Gdd�de
�ZGdd
�d
e�ZGdd�de�Z
Gdd�de�ZGdd�de�ZGdd�de�ZGdd	�d	e�ZGdd�de
�Zdd�ZdS) zlazr.restfulclient errors.�
BadRequest�Conflict�ClientError�CredentialsError�CredentialsFileError�	HTTPError�MethodNotAllowed�NotFound�PreconditionFailed�RestfulError�
ResponseError�ServerError�Unauthorized�UnexpectedResponseErrorc@seZdZdZdS)r
z2Base error for the lazr.restfulclient API library.N��__name__�
__module__�__qualname__�__doc__�rr�;/usr/lib/python3/dist-packages/lazr/restfulclient/errors.pyr
(sc@seZdZdZdS)rz&Base credentials/authentication error.Nrrrrrr,sc@seZdZdZdS)rzError in credentials file.Nrrrrrr0sc@seZdZdZdd�ZdS)rzError in response.cCst�|�||_||_dS)N)r
�__init__�response�content)�selfrrrrrr7s
zResponseError.__init__N)rrrrrrrrrr4sc@seZdZdZdd�ZdS)rz$An unexpected response was received.cCsd|jj|jjfS)N�%s: %s)r�status�reason)rrrr�__str__@szUnexpectedResponseError.__str__N�rrrrrrrrrr=sc@seZdZdZdd�ZdS)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)�.0Zpairrrr�
<listcomp>Is�z%HTTPError.__str__.<locals>.<listcomp>zIHTTP Error %s: %s
Response headers:
---
%s
---
Response body:
---
%s
---
)�join�sortedr�itemsrrr)rZheadersrrrrGs
���zHTTPError.__str__NrrrrrrDsc@seZdZdZdS)rz.An exception representing a client-side error.NrrrrrrQsc@seZdZdZdS)r
z4An exception representing an authentication failure.Nrrrrrr
Usc@seZdZdZdS)rz1An exception representing a nonexistent resource.NrrrrrrYsc@seZdZdZdS)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]sc@seZdZdZdS)rz:An exception representing a problem with a client request.Nrrrrrresc@seZdZdZdS)rz9An exception representing a conflict with another client.Nrrrrrrisc@seZdZdZdS)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	msc@seZdZdZdS)rz.An exception representing a server-side error.NrrrrrruscCsjttttttd�}|jddkr$dS|�|jt�}|tkr`|jddkrNt	}n|jddkr`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��)rr
rrrr	r�getrrr)rrZhttp_errors_by_status_code�clsrrr�	error_forys �	r+N)r�typeZ
__metaclass__�__all__�	Exceptionr
rrrrrrr
rrrrr	rr+rrrr�<module>s>�