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/boto/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/boto/__pycache__/exception.cpython-310.pyc
o

ckF[�E�@s�dZddlZddlZddlZddlmZddlmZmZddl	m
Z
Gdd�de�ZGdd	�d	e�ZGd
d�de�Z
Gdd
�d
e
�ZGdd�de
�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�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�Z Gd0d1�d1e�Z!Gd2d3�d3e�Z"Gd4d5�d5e�Z#Gd6d7�d7e�Z$Gd8d9�d9e�Z%Gd:d;�d;e�Z&Gd<d=�d=e&�Z'Gd>d?�d?e&�Z(Gd@dA�dAe)�Z*GdBdC�dCe)�Z+GdDdE�dEe)�Z,GdFdG�dGe)�Z-GdHdI�dIe)�Z.GdJdK�dKe)�Z/GdLdM�dMe�Z0GdNdO�dOe)�Z1GdPdQ�dQe)�Z2GdRdS�dSe)�Z3GdTdU�dUe)�Z4GdVdW�dWe)�Z5dS)XzI
Exception classes - Subclassing allows you to check for specific errors
�N)�handler)�json�
StandardError)�	ResultSetc�0eZdZdZ�fdd�Zdd�Zdd�Z�ZS)�BotoClientErrorz9
    General Boto Client error (error accessing AWS)
    cs"tt|�j|g|�R�||_dS�N)�superr�__init__�reason)�selfr�args��	__class__��0/usr/lib/python3/dist-packages/boto/exception.pyr
)s
zBotoClientError.__init__cC�
d|jS�NzBotoClientError: %s�r�rrrr�__repr__-�
zBotoClientError.__repr__cCrrrrrrr�__str__0rzBotoClientError.__str__��__name__�
__module__�__qualname__�__doc__r
rr�
__classcell__rrrrr%�
rc@�eZdZdS)�SDBPersistenceErrorN�rrrrrrrr!4�r!c@�eZdZdZdS)�StoragePermissionsErrorzP
    Permissions error when accessing a bucket or key on a storage service.
    N�rrrrrrrrr%8�r%c@r$)�S3PermissionsErrorzA
    Permissions error when accessing a bucket or key on S3.
    Nr&rrrrr(?r'r(c@r$)�GSPermissionsErrorzA
    Permissions error when accessing a bucket or key on GS.
    Nr&rrrrr)Fr'r)csZeZdZd�fdd�	Zdd�Z�fdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
�ZS)�BotoServerErrorNcs�tt|�j|||g|�R�||_||_|pd|_d|_d|_d|_d|_	d|_
t|jt�rGz	|j�
d�|_WntyFtj�d�Ynw|jr�t|jd�r~|j�dd�|_d|jvrt|j�di�}|�dd�|_|�dd�|_	dS|j�d	d�|_	dSzt�||�}|�|j�WdSttjjfy�z9t�|j�}d|vr�|d|_d|vr�d|dvr�|dd|_d|dvr�|dd|_	WYdSWYdSWYdSttfy�|j|_	d|_YYdSwwdS)
N�zutf-8z!Unable to decode body from bytes!�items�	RequestId�Error�Code�Message�message)r	r*r
�statusr�body�
request_id�
error_code�_error_messager1�	box_usage�
isinstance�bytes�decode�UnicodeDecodeError�boto�log�debug�hasattr�getr�XmlHandlerWrapper�parseString�	TypeError�xml�sax�SAXParseExceptionr�loads�
ValueError)rr2rr3r
�error�h�parsedrrrr
NsX
�

����zBotoServerError.__init__cCs |dkr|jS|dkr|jSt�)N�
error_message�code)r1r5�AttributeError)r�namerrr�__getattr__�s
zBotoServerError.__getattr__cs(|dkr	||_dStt|��||�dS)NrL)r1r	r*�__setattr__)rrO�valuerrrrQ�s
zBotoServerError.__setattr__cC�d|jj|j|j|jfS�Nz%s: %s %s
%s�rrr2rr3rrrrr���zBotoServerError.__repr__cCrSrTrUrrrrr�rVzBotoServerError.__str__cC�dSrr�rrO�attrs�
connectionrrr�startElement��zBotoServerError.startElementcCsH|dvr	||_dS|dkr||_dS|dkr||_dS|dkr"||_dS)N)r-�	RequestIDr/r0�BoxUsage�r4r5r1r7�rrOrRrZrrr�
endElement�s���zBotoServerError.endElementcCsd|_d|_d|_d|_dSrr_rrrr�_cleanupParsedProperties�s
z(BotoServerError._cleanupParsedPropertiesr)rrrr
rPrQrrr[rarbrrrrrr*Ms;r*c@�&eZdZddd�Zdd�Zdd�ZdS)	�
ConsoleOutputNcCs"||_d|_d|_d|_d|_dSr)�parent�instance_id�	timestamp�comment�output)rrerrrr
�s

zConsoleOutput.__init__cCrWrrrXrrrr[�r\zConsoleOutput.startElementcCs:|dkr	||_dS|dkrt�|�|_dSt|||�dS)N�
instanceIdri)rf�base64�	b64decoderi�setattrr`rrrra�s

zConsoleOutput.endElementr�rrrr
r[rarrrrrd�s
rdcs.eZdZdZd�fdd�	Z�fdd�Z�ZS)�StorageCreateErrorz>
    Error creating a bucket or key on a storage service.
    Nc�d|_tt|��|||�dSr)�bucketr	ror
�rr2rr3rrrr
��zStorageCreateError.__init__c�&|dkr	||_dStt|��|||�S)N�
BucketName)rqr	rorar`rrrra�s
zStorageCreateError.endElementr)rrrrr
rarrrrrro�sroc@r$)�
S3CreateErrorz/
    Error creating a bucket or key on S3.
    Nr&rrrrrv�r'rvc@r$)�
GSCreateErrorz/
    Error creating a bucket or key on GS.
    Nr&rrrrrw�r'rwc@r$)�StorageCopyErrorz3
    Error copying a key on a storage service.
    Nr&rrrrrx�r'rxc@r$)�S3CopyErrorz$
    Error copying a key on S3.
    Nr&rrrrry�r'ryc@r$)�GSCopyErrorz$
    Error copying a key on GS.
    Nr&rrrrrz�r'rzc�FeZdZdZd�fdd�	Z�fdd�Z�fdd�Z�fd	d
�Z�ZS)�SQSErrorz0
    General Error on Simple Queue Service.
    Ncs$d|_d|_tt|��|||�dSr)�detail�typer	r|r
rrrrrr
�szSQSError.__init__c�tt|��|||�Sr)r	r|r[rXrrrr[szSQSError.startElementcs8|dkr	||_dS|dkr||_dStt|��|||�S)N�Detail�Type)r}r~r	r|rar`rrrras


zSQSError.endElementc�(tt|���dD]}t||d�q	dS)N)r}r~)r	r|rbrm�r�prrrrb
��z!SQSError._cleanupParsedPropertiesr�	rrrrr
r[rarbrrrrrr|�sr|cr)�SQSDecodeErrorz-
    Error when decoding an SQS message.
    cstt|��||�||_dSr)r	r�r
r1)rrr1rrrr
s
zSQSDecodeError.__init__cCr�NzSQSDecodeError: %srrrrrrrzSQSDecodeError.__repr__cCrr�rrrrrrrzSQSDecodeError.__str__rrrrrr�rr�cr{)�StorageResponseErrorz3
    Error in response from a storage service.
    Ncrpr)�resourcer	r�r
rrrrrr
&rszStorageResponseError.__init__crr)r	r�r[rXrrrr[*s
�z!StorageResponseError.startElementcrt)N�Resource)r�r	r�rar`rrrra.s


�zStorageResponseError.endElementcr�)Nr�)r	r�rbrmr�rrrrb5r�z-StorageResponseError._cleanupParsedPropertiesrr�rrrrr�"sr�c@r$)�S3ResponseErrorz$
    Error in response from S3.
    Nr&rrrrr�;r'r�c@r$)�GSResponseErrorz$
    Error in response from GS.
    Nr&rrrrr�Br'r�cs>eZdZdZd�fdd�	Zdd�Zdd�Z�fd	d
�Z�ZS)�EC2ResponseErrorz%
    Error in response from EC2.
    NcsVd|_g|_tt|��|||�dd�|jD�|_t|j�r)|jd\|_|_dSdS)NcSsg|]}|j|jf�qSr�r5rL)�.0�errr�
<listcomp>Qs�z-EC2ResponseError.__init__.<locals>.<listcomp>r)�errors�_errorResultSetr	r�r
�lenr5rLrrrrrr
Ms�
�zEC2ResponseError.__init__cCs"|dkrtdtfg�|_|jSdS)N�Errorsr.)r�	_EC2Errorr�rXrrrr[VszEC2ResponseError.startElementcCs|dkr	||_dSdS)Nr])r4r`rrrra]s
zEC2ResponseError.endElementcs.tt|���g|_dD]}t||d�qdS)Nr�)r	r�rbr�rmr�rrrrbcs
�z)EC2ResponseError._cleanupParsedPropertiesrr�rrrrr�Is	r�c@seZdZdZddd�ZdS)�JSONResponseErrora�
    This exception expects the fully parsed and decoded JSON response
    body to be passed as the body parameter.

    :ivar status: The HTTP status code.
    :ivar reason: The HTTP reason message.
    :ivar body: The Python dict that represents the decoded JSON
        response body.
    :ivar error_message: The full description of the AWS error encountered.
    :ivar error_code: A short string that identifies the AWS error
        (e.g. ConditionalCheckFailedException)
    NcGs\||_||_||_|jr*|j�dd�|_|j�dd�|_|jr,|j�d�d|_dSdSdS)Nr1�__type�#���)r2rr3r@rLr5�split)rr2rr3r
rrrr
ws�zJSONResponseError.__init__r)rrrrr
rrrrr�jsr�c@r )�DynamoDBResponseErrorNr"rrrrr��r#r�c@r )�SWFResponseErrorNr"rrrrr��r#r�c@r$)�EmrResponseErrorz$
    Error in response from EMR
    Nr&rrrrr��r'r�c@rc)	r�NcCs||_d|_d|_dSr)rZr5rL)rrZrrrr
�s
z_EC2Error.__init__cCrWrrrXrrrr[�r\z_EC2Error.startElementcCs(|dkr	||_dS|dkr||_dSdS)Nr/r0r�r`rrrra�s


z_EC2Error.endElementrrnrrrrr��s
r�c@r$)�SDBResponseErrorz&
    Error in responses from SDB.
    Nr&rrrrr��r'r�c@r$)�AWSConnectionErrorz:
    General error connecting to Amazon Web Services.
    Nr&rrrrr��r'r�c@r$)�StorageDataErrorz6
    Error receiving data from a storage service.
    Nr&rrrrr��r'r�c@r$)�S3DataErrorz'
    Error receiving data from S3.
    Nr&rrrrr��r'r�c@r$)�GSDataErrorz'
    Error receiving data from GS.
    Nr&rrrrr��r'r�c� eZdZdZ�fdd�Z�ZS)�InvalidUriErrorz%Exception raised when URI is invalid.c�tt|��|�||_dSr)r	r�r
r1�rr1rrrr
��
zInvalidUriError.__init__�rrrrr
rrrrrr���r�cr�)�InvalidAclErrorz)Exception raised when ACL XML is invalid.cr�r)r	r�r
r1r�rrrr
�r�zInvalidAclError.__init__r�rrrrr��r�r�cr�)�InvalidCorsErrorz*Exception raised when CORS XML is invalid.cr�r)r	r�r
r1r�rrrr
�r�zInvalidCorsError.__init__r�rrrrr��r�r�cr�)�InvalidEncryptionConfigErrorzBException raised when GCS encryption configuration XML is invalid.cr�r)r	r�r
r1r�rrrr
�r�z%InvalidEncryptionConfigError.__init__r�rrrrr��r�r�cr�)�InvalidLifecycleConfigErrorzAException raised when GCS lifecycle configuration XML is invalid.cr�r)r	r�r
r1r�rrrr
�r�z$InvalidLifecycleConfigError.__init__r�rrrrr��r�r�c@r$)�NoAuthHandlerFoundzAIs raised when no auth handlers were found ready to authenticate.Nr&rrrrr��sr�c@seZdZdZdZdZdZdS)�ResumableTransferDisposition�
START_OVER�WAIT_BEFORE_RETRY�ABORT_CUR_PROCESS�ABORTN)rrrr�r�r�r�rrrrr��s
r�c�(eZdZdZ�fdd�Zdd�Z�ZS)�ResumableUploadExceptionz�
    Exception raised for various resumable upload problems.

    self.disposition is of type ResumableTransferDisposition.
    c�"tt|��||�||_||_dSr)r	r�r
r1�disposition�rr1r�rrrr
�
z!ResumableUploadException.__init__cC�d|j|jfS)Nz"ResumableUploadException("%s", %s)�r1r�rrrrr��z!ResumableUploadException.__repr__�rrrrr
rrrrrrr��r�cr�)�ResumableDownloadExceptionz�
    Exception raised for various resumable download problems.

    self.disposition is of type ResumableTransferDisposition.
    cr�r)r	r�r
r1r�r�rrrr
$r�z#ResumableDownloadException.__init__cCr�)Nz$ResumableDownloadException("%s", %s)r�rrrrr)r�z#ResumableDownloadException.__repr__r�rrrrr�r�r�cr�)�TooManyRecordsExceptionzd
    Exception raised when a search of Route53 records returns more
    records than requested.
    cr�r)r	r�r
r1r�rrrr
4r�z TooManyRecordsException.__init__r�rrrrr�.sr�c@s"eZdZdZddd�Zdd�ZdS)�PleaseRetryExceptionz0
    Indicates a request should be retried.
    NcCs||_||_dSr�r1�response)rr1r�rrrr
=s
zPleaseRetryException.__init__cCr�)NzPleaseRetryException("%s", %s)r�rrrrrAs�zPleaseRetryException.__repr__r)rrrrr
rrrrrr�9s
r�cr�)�InvalidInstanceMetadataErrorz�You can set the 'metadata_service_num_attempts' in your boto config file to increase the number of times boto will attempt to retrieve credentials from the instance metadata service.cs"|d|j}tt|��|�dS)N�
)�MSGr	r�r
)r�msg�	final_msgrrrr
Osz%InvalidInstanceMetadataError.__init__)rrrr�r
rrrrrr�Hs�r�)6rrk�xml.saxrDr<r�boto.compatrr�boto.resultsetrrr!r%r(r)r*�objectrdrorvrwrxryrzr|r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��	Exceptionr�r�r�r�r�r�r�r�r�r�r�r�rrrr�<module>s`f!

https://t.me/RX1948 - 2025