o
    ßÜgÂ
  ã                   @   s`   d Z zddlmZ ddlmZ W n ey   eZeZY nw G dd„ deƒZG dd„ deƒZdS )	z!Exceptions raised by the library.é    )ÚInvalidResponse)ÚDataCorruptionc                       ó    e Zd ZdZ‡ fdd„Z‡  ZS )r   z÷Error class for responses which are not in the correct state.

    Args:
        response (object): The HTTP response which caused the failure.
        args (tuple): The positional arguments typically passed to an
            exception class.
    c                    ó6   t tu rtƒ j|Ž  || _d S tƒ j|g|¢R Ž  d S ©N)ÚInvalidResponseDynamicParentÚ	ExceptionÚsuperÚ__init__Úresponse©Úselfr   Úargs©Ú	__class__© úY/var/www/html/api-tag/env/lib/python3.10/site-packages/google/cloud/storage/exceptions.pyr
   -   ó
   zInvalidResponse.__init__©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   Ú__classcell__r   r   r   r   r   $   ó    r   c                       r   )r   zâError class for corrupt media transfers.

    Args:
        response (object): The HTTP response which caused the failure.
        args (tuple): The positional arguments typically passed to an
            exception class.
    c                    r   r   )ÚDataCorruptionDynamicParentr   r	   r
   r   r   r   r   r   r
   ?   r   zDataCorruption.__init__r   r   r   r   r   r   6   r   r   N)r   Úgoogle.resumable_mediar   r   r   r   ÚImportErrorr   r   r   r   r   Ú<module>   s   þ