
    9i                     f    S r  " S S\5      r " S S\5      r " S S\5      r " S S\5      rS	 rg
)z
ERRORS
c                       \ rS rSrSrSrg)InvalidParameter   error N__name__
__module____qualname____firstlineno____doc____static_attributes__r       S/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/aistudio_sdk/errors.pyr   r          r   r   c                       \ rS rSrSrSrg)NotExistError	   r   r   Nr   r   r   r   r   r   	   r   r   r   c                       \ rS rSrSrSrg)FileIntegrityError   r   r   Nr   r   r   r   r   r      r   r   r   c                       \ rS rSrSrSrg)RequestError   r   r   Nr   r   r   r   r   r      r   r   r   c                 ,    U S   b  g[        U S   5      e)zIf response error, raise exception

Args:
    rsp (_type_): The server response

Raises:
    RequestError: the response error message.

Returns:
    bool: True if request is OK, otherwise raise `RequestError` exception.
total_countTMessage)r   )rsps    r   raise_on_errorr      s!     =%3y>**r   N)r   	Exceptionr   r   r   r   r   r   r   r   <module>r       s?   	y 	
	I 	
	 	
	9 	
+r   