Ë
    v»•jf  ã                   óÔ   — d Z ddlmZmZ ddlmZ  G d„ de«      Z G d„ de«      Z G d„ d	e«      Z	 G d
„ de«      Z
 G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Zy)zE
gspread.exceptions
~~~~~~~~~~~~~~~~~~

Exceptions used in gspread.

é    )ÚAnyÚMapping)ÚResponsec                   ó   — e Zd ZdZy)ÚUnSupportedExportFormatz+Raised when export format is not supported.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    úE/var/www/html/venv/lib/python3.12/site-packages/gspread/exceptions.pyr   r      s   „ Ú5r   r   c                   ó   — e Zd ZdZy)ÚGSpreadExceptionz&A base class for gspread's exceptions.Nr   r   r   r   r   r      s   „ Ú0r   r   c                   ó   — e Zd ZdZy)ÚWorksheetNotFoundz6Trying to open non-existent or inaccessible worksheet.Nr   r   r   r   r   r      s   „ Ú@r   r   c                   ó   — e Zd ZdZy)ÚNoValidUrlKeyFoundzNo valid key found in URL.Nr   r   r   r   r   r      s   „ Ú$r   r   c                   ó   — e Zd ZdZy)ÚIncorrectCellLabelzThe cell label is incorrect.Nr   r   r   r   r   r      s   „ Ú&r   r   c                   ó   — e Zd ZdZy)ÚInvalidInputValuez!The provided values is incorrect.Nr   r   r   r   r   r   "   s   „ Ú+r   r   c                   óL   ‡ — e Zd ZdZdefˆ fd„Zdefd„Zdefd„Zde	fd„Z
ˆ xZS )ÚAPIErrorzcErrors coming from the API itself,
    such as when we attempt to retrieve things that don't exist.Úresponsec                 óú   •— 	 |j                  «       d   }t        ‰| �  |«       || _        || _        | j                  d   | _        y # t        $ r)}d|j                  dj                  |«      dœ}Y d }~Œ_d }~ww xY w)NÚerroréÿÿÿÿzinvalid JSON: '{}')ÚcodeÚmessageÚstatusr    )	ÚjsonÚ	ExceptionÚtextÚformatÚsuperÚ__init__r   r   r    )Úselfr   r   ÚeÚ	__class__s       €r   r(   zAPIError.__init__*   sx   ø€ ð	Ø—M‘M“O GÑ,ˆEô 	‰Ñ˜ÔØ"*ˆŒØ(-ˆŒ
ØŸ™ FÑ+ˆ�	øô ò 		ð Ø#Ÿ=™=Ø.×5Ñ5°aÓ8ñ�Eûð		ús   ƒA Á	A:ÁA5Á5A:Úreturnc                 ó~   — dj                  | j                  j                  | j                  | j                  d   «      S )Nz{}: [{}]: {}r!   )r&   r+   r	   r    r   ©r)   s    r   Ú__str__zAPIError.__str__=   s3   € Ø×$Ñ$Ø�N‰N×#Ñ# T§Y¡Y°·
±
¸9Ñ0Eó
ð 	
r   c                 ó"   — | j                  «       S ©N)r/   r.   s    r   Ú__repr__zAPIError.__repr__B   s   € Ø�|‰|‹~Ðr   c                 ó4   — | j                   | j                  ffS r1   )r+   r   r.   s    r   Ú
__reduce__zAPIError.__reduce__E   s   € Ø�~‰~ §¡Ð/Ð/Ð/r   )r	   r
   r   r   r   r(   Ústrr/   r2   Útupler4   Ú__classcell__)r+   s   @r   r   r   &   s9   ø„ ñDð, õ ,ð&
˜ó 
ð
˜#ó ð0˜E÷ 0r   r   c                   ó   — e Zd ZdZy)ÚSpreadsheetNotFoundz8Trying to open non-existent or inaccessible spreadsheet.Nr   r   r   r   r9   r9   I   s   „ ÚBr   r9   N)r   Útypingr   r   Úrequestsr   r$   r   r   r   r   r   r   r   r9   r   r   r   ú<module>r<      s}   ðñ÷  å ô6˜iô 6ô1�yô 1ôAÐ(ô Aô%Ð)ô %ô'Ð)ô 'ô,Ð(ô ,ô 0Ðô  0ôFCÐ*õ Cr   