U
    ´.¬b  ã                   @   sÜ   d dl ZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd	„ d	eejjƒZG d
d„ deejjƒZ	G dd„ deƒZ
G dd„ deƒZG dd„ deƒZG dd„ deƒZeZG dd„ deƒZG dd„ deƒZG dd„ deƒZdS )é    Nc                   @   s   e Zd ZdZdS )Ú
Boto3Errorz Base class for all Boto3 errors.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   ú4/tmp/pip-unpacked-wheel-7h_bjh9e/boto3/exceptions.pyr      s   r   c                   @   s   e Zd ZdS )ÚResourceLoadExceptionN©r   r   r   r   r   r   r	   r
      s   r
   c                   @   s   e Zd ZdS )ÚNoVersionFoundNr   r   r   r   r	   r      s   r   c                   @   s   e Zd Zdd„ ZdS )ÚUnknownAPIVersionErrorc                 C   s&   d|› d|› d|› �}t  | |¡ d S )NzThe 'z'' resource does not an API version of: z
Valid API versions are: )r   Ú__init__)ÚselfÚservice_nameZbad_api_versionZavailable_api_versionsÚmsgr   r   r	   r   )   s    ÿzUnknownAPIVersionError.__init__N)r   r   r   r   r   r   r   r	   r   &   s   r   c                   @   s   e Zd ZdZdd„ ZdS )ÚResourceNotExistsErrorzARaised when you attempt to create a resource that does not exist.c                 C   s<   d  |d |¡¡}|r,|› d|› d|› d�}t | |¡ d S )NzGThe '{}' resource does not exist.
The available resources are:
   - {}
z
   - z 
Consider using a boto3.client('z') instead of a resource for 'ú')ÚformatÚjoinr   r   )r   r   Zavailable_servicesZhas_low_level_clientr   r   r   r	   r   8   s     ýÿÿzResourceNotExistsError.__init__N©r   r   r   r   r   r   r   r   r	   r   3   s   r   c                       s   e Zd Zd‡ fdd„	Z‡  ZS )ÚRetriesExceededErrorúMax Retries Exceededc                    s   t ƒ  |¡ || _d S )N)Úsuperr   Úlast_exception)r   r   r   ©Ú	__class__r   r	   r   K   s    zRetriesExceededError.__init__)r   )r   r   r   r   Ú__classcell__r   r   r   r	   r   J   s   r   c                   @   s   e Zd ZdS )ÚS3TransferFailedErrorNr   r   r   r   r	   r   P   s   r   c                   @   s   e Zd ZdS )ÚS3UploadFailedErrorNr   r   r   r   r	   r   T   s   r   c                   @   s   e Zd ZdZdd„ ZdS )Ú"DynamoDBOperationNotSupportedErrorz<Raised for operations that are not supported for an operand.c                 C   s*   |› d|› dt |ƒ› d�}t | |¡ d S )Nz& operation cannot be applied to value ú	 of type zo directly. Must use AttributeBase object methods (i.e. Attr().eq()). to generate ConditionBase instances first.©ÚtypeÚ	Exceptionr   )r   Z	operationÚvaluer   r   r   r	   r   [   s    ÿz+DynamoDBOperationNotSupportedError.__init__Nr   r   r   r   r	   r    X   s   r    c                   @   s   e Zd ZdZdd„ ZdS )ÚDynamoDBNeedsConditionErrorz$Raised when input is not a conditionc                 C   s&   d|› dt |ƒ› d�}t | |¡ d S )Nz&Expecting a ConditionBase object. Got r!   z[. Use AttributeBase object methods (i.e. Attr().eq()). to generate ConditionBase instances.r"   )r   r%   r   r   r   r	   r   k   s    ÿz$DynamoDBNeedsConditionError.__init__Nr   r   r   r   r	   r&   h   s   r&   c                   @   s   e Zd ZdS )ÚDynamoDBNeedsKeyConditionErrorNr   r   r   r   r	   r'   t   s   r'   c                   @   s   e Zd ZdZdS )ÚPythonDeprecationWarningz{
    Python version being used is scheduled to become unsupported
    in an future release. See warning for specifics.
    Nr   r   r   r   r	   r(   x   s   r(   )Zbotocore.exceptionsZbotocorer$   r   r
   r   Ú
exceptionsZDataNotFoundErrorr   r   r   r   r   r    Z#DynanmoDBOperationNotSupportedErrorr&   r'   ÚWarningr(   r   r   r   r	   Ú<module>   s&   	
 ÿ
 ÿ