o
    ±zsgY  ã                   @   s<   d dl mZ ddlmZ G dd„ deƒZG dd„ deƒZdS )	é    )Ú	TypedDicté   )ÚStorageExceptionc                   @   s&   e Zd ZU eed< eed< eed< dS )ÚStorageApiErrorDictÚnameÚmessageÚstatusN)Ú__name__Ú
__module__Ú__qualname__ÚstrÚ__annotations__Úint© r   r   úO/var/www/html/minecraft/env/lib/python3.10/site-packages/storage3/exceptions.pyr      s   
 r   c                       s@   e Zd ZdZdedededdf‡ fdd„Zdefd	d
„Z‡  Z	S )ÚStorageApiErrorz8Error raised when an operation on the storage API fails.r   Úcoder   ÚreturnNc                    s6   d  |||¡}tƒ  |¡ d| _|| _|| _|| _d S )Nz0{{'statusCode': {}, 'error': {}, 'message': {}}}r   )ÚformatÚsuperÚ__init__r   r   r   r   )Úselfr   r   r   Úerror_message©Ú	__class__r   r   r      s   ý
zStorageApiError.__init__c                 C   s   | j | j| j| jdœS )N©r   r   r   r   r   )r   r   r   r   Úto_dict   s
   üzStorageApiError.to_dict)
r	   r
   r   Ú__doc__r   r   r   r   r   Ú__classcell__r   r   r   r   r      s    r   N)Útypingr   Úutilsr   r   r   r   r   r   r   Ú<module>   s    