HEX
Server: LiteSpeed
System: Linux us-phx-web629.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64
User: u756937133 (756937133)
PHP: 8.2.27
Disabled: passthru,chgrp
Upload Files
File: //opt/gsutil/third_party/apitools/apitools/base/py/__pycache__/exceptions.cpython-39.pyc
a

�z�g��@s�dZGdd�de�ZGdd�dee�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZGdd�de�ZGd
d�de�Z	Gdd�de	�Z
Gdd�de	�ZGdd�de	�ZGdd�de	�Z
Gdd�de	�Ze
eee
ed�ZGdd�de�ZGdd�dee�ZGdd�de�ZGd d!�d!e�ZGd"d#�d#e�ZGd$d%�d%e�ZGd&d'�d'e�ZGd(d)�d)e�ZGd*d+�d+e�ZGd,d-�d-e�ZGd.d/�d/e�ZGd0d1�d1e�ZGd2d3�d3e	�ZGd4d5�d5e	�ZGd6d7�d7e�ZGd8d9�d9e�Zd:S);z*Exceptions for generated client libraries.c@seZdZdZdS)�ErrorzBase class for all exceptions.N��__name__�
__module__�__qualname__�__doc__�rr�?/opt/gsutil/third_party/apitools/apitools/base/py/exceptions.pyrsrc@seZdZdZdS)�TypecheckErrorz+An object of an incorrect type is provided.Nrrrrrr	sr	c@seZdZdZdS)�
NotFoundErrorz(A specified resource could not be found.Nrrrrrr
sr
c@seZdZdZdS)�	UserErrorz,Base class for errors related to user input.Nrrrrrr#src@seZdZdZdS)�InvalidDataErrorz&Base class for any invalid data error.Nrrrrrr(src@seZdZdZdS)�CommunicationErrorz1Any communication error talking to an API server.Nrrrrrr
-sr
csNeZdZdZd
�fdd�	Zdd�Zedd��Zed	d
��Z	e
dd��Z�ZS)�	HttpErrorz-Error making a request. Soon to be HttpError.Ncs@t�|||�}tt|��|�||_||_||_||_||_dS�N)	r�_build_message�super�__init__�response�content�url�
method_config�request)�selfrrrrr�
error_message��	__class__rrr6szHttpError.__init__cCst�|j|j|j�Sr)rrrrr�rrrr�__str__@szHttpError.__str__cCs$t|t�r|�dd�}d|||fS)N�ascii�replacez6HttpError accessing <%s>: response: <%s>, content <%s>)�
isinstance�bytes�decode)rrrrrrrCs

�zHttpError._build_messagecCst|jd�S�N�status)�intrrrrr�status_codeJszHttpError.status_codecKsRz t|j�d��}t�||�}Wnty6|}Yn0||j|j|jfi|��Sr#)r%�info�get�_HTTP_ERRORS�
ValueErrorr�request_url)�cls�
http_response�kwargsr&Z	error_clsrrr�FromResponsePs

��zHttpError.FromResponse)NN)
rrrrrr�staticmethodr�propertyr&�classmethodr/�
__classcell__rrrrr2s�


rc@seZdZdZdS)�HttpBadRequestErrorzHTTP 400 Bad Request.Nrrrrrr4[sr4c@seZdZdZdS)�HttpUnauthorizedErrorzHTTP 401 Unauthorized.Nrrrrrr5_sr5c@seZdZdZdS)�HttpForbiddenErrorzHTTP 403 Forbidden.Nrrrrrr6csr6c@seZdZdZdS)�HttpNotFoundErrorzHTTP 404 Not Found.Nrrrrrr7gsr7c@seZdZdZdS)�HttpConflictErrorzHTTP 409 Conflict.Nrrrrrr8ksr8)i�i�i�i�i�c@seZdZdZdS)�InvalidUserInputErrorzUser-provided input is invalid.Nrrrrrr9xsr9c@seZdZdZdS)�InvalidDataFromServerErrorz+Data received from the server is malformed.Nrrrrrr:}sr:c@seZdZdZdS)�
BatchErrorz3Error generated while constructing a batch request.Nrrrrrr;�sr;c@seZdZdZdS)�ConfigurationErrorz$Base class for configuration errors.Nrrrrrr<�sr<c@seZdZdZdS)�GeneratedClientErrorz.The generated client configuration is invalid.Nrrrrrr=�sr=c@seZdZdZdS)�ConfigurationValueErrorz@Some part of the user-specified client configuration is invalid.Nrrrrrr>�sr>c@seZdZdZdS)�ResourceUnavailableErrorz'User requested an unavailable resource.Nrrrrrr?�sr?c@seZdZdZdS)�CredentialsErrorz&Errors related to invalid credentials.Nrrrrrr@�sr@c@seZdZdZdS)�
TransferErrorzErrors related to transfers.NrrrrrrA�srAc@seZdZdZdS)�TransferRetryErrorz&Retryable errors related to transfers.NrrrrrrB�srBc@seZdZdZdS)�TransferInvalidErrorzThe given transfer is invalid.NrrrrrrC�srCc@seZdZdZdS)�RequestErrorzThe request was not successful.NrrrrrrD�srDcs,eZdZdZ�fdd�Zedd��Z�ZS)�RetryAfterErrorz,The response contained a retry-after header.cs*tt|�j|||fi|��t|�|_dSr)rrErr%�retry_after)rrrrrFr.rrrr�szRetryAfterError.__init__cKs||j|j|j|jfi|��Sr)r'rr+rF)r,r-r.rrrr/�s

��zRetryAfterError.FromResponse)rrrrrr2r/r3rrrrrE�srEc@seZdZdZdS)�BadStatusCodeErrorz5The request completed but returned a bad status code.NrrrrrrG�srGc@seZdZdZdS)�NotYetImplementedErrorz*This functionality is not yet implemented.NrrrrrrH�srHc@seZdZdZdS)�StreamExhaustedz?Attempted to read more bytes from a stream than were available.NrrrrrrI�srIN) r�	Exceptionr�	TypeErrorr	r
rrr
rr4r5r6r7r8r)r9r:r;r<r=r>r?r@rArBrCrDrErGrHrIrrrr�<module>sD)�