o
    )=j.  ã                   @   sp   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G dd	„ d	eƒZd
S )z!Exceptions raised by the library.é    )ÚInvalidResponse)ÚDataCorruptionc                   @   s   e Zd ZdZdS )ÚInvalidPathErrorz2Raised when the provided path string is malformed.N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r	   r	   úiC:\Users\psant\Downloads\Anu Raj Backend\school\venv\Lib\site-packages\google/cloud/storage/exceptions.pyr   $   s    r   c                       ó    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__r	   r
   r   3   ó
   zInvalidResponse.__init__©r   r   r   r   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   E   r   zDataCorruption.__init__r   r	   r	   r   r
   r   <   r   r   N)	r   Zgoogle.resumable_mediar   r   r   r   ÚImportErrorr   r   r	   r	   r	   r
   Ú<module>   s   þ