U
    $FZhÂ
  ã                   @   sb   d Z zddlmZ ddlmZ W n ek
r<   eZeZY nX G dd„ deƒZG dd„ deƒZdS )	z!Exceptions raised by the library.é    )ÚInvalidResponse)ÚDataCorruptionc                       s    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                    s2   t tkrtƒ j|Ž  || _ntƒ j|f|žŽ  d S ©N)ÚInvalidResponseDynamicParentÚ	ExceptionÚsuperÚ__init__Úresponse©Úselfr	   Úargs©Ú	__class__© úf/home/aprabhat/apps/x.techxrdev.in/venv/lib/python3.8/site-packages/google/cloud/storage/exceptions.pyr   -   s
    zInvalidResponse.__init__©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__classcell__r   r   r   r   r   $   s   r   c                       s    e Zd ZdZ‡ fdd„Z‡  ZS )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                    s2   t tkrtƒ j|Ž  || _ntƒ j|f|žŽ  d S r   )ÚDataCorruptionDynamicParentr   r   r   r	   r
   r   r   r   r   ?   s
    zDataCorruption.__init__r   r   r   r   r   r   6   s   r   N)r   Zgoogle.resumable_mediar   r   r   r   ÚImportErrorr   r   r   r   r   Ú<module>   s   
