
    ?pj/
                         " S  S\ 5      r " S S\5      r " S S\5      r " S S\5      r " S S	\5      r " S
 S\5      r " S S\5      r " S S\5      r " S S\5      r	 " S S\5      r
 " S S\5      r " S S\5      rg)c                   4   ^  \ rS rSrSrS\4U 4S jjrSrU =r$ )PaddleOCRAPIError   z%Base exception for PaddleOCR API SDK.messagec                 0   > Xl         [        TU ]	  U5        g N)r   super__init__selfr   	__class__s     X/var/www/html/pdf-tiff/venv/lib/python3.13/site-packages/paddleocr/_api_client/errors.pyr	   PaddleOCRAPIError.__init__   s    !    )r   	__name__
__module____qualname____firstlineno____doc__strr	   __static_attributes____classcell__r   s   @r   r   r      s    /" " "r   r   c                       \ rS rSrSrSrg)	AuthError   z2Token missing, invalid, or expired (HTTP 401/403). Nr   r   r   r   r   r   r   r   r   r   r      s    <r   r   c                       \ rS rSrSrSrg)InvalidRequestError   zInvalid parameters (HTTP 400).r   Nr   r   r   r   r    r       s    (r   r    c                   8   ^  \ rS rSrSrS\S\4U 4S jjrSrU =r	$ )APIError    z%Non-2xx response from the API server.status_coder   c                 <   > Xl         [        TU ]	  SU SU 35        g )NzHTTP z: )r%   r   r	   r   r%   r   r   s      r   r	   APIError.__init__#   s#    &5Ry9:r   )r%   
r   r   r   r   r   intr   r	   r   r   r   s   @r   r#   r#       s    /;C ;# ; ;r   r#   c                   4   ^  \ rS rSrSrS\4U 4S jjrSrU =r$ )RateLimitError(   z Daily quota exceeded (HTTP 429).r   c                 &   > [         TU ]  SU5        g )Ni  r   r	   r
   s     r   r	   RateLimitError.__init__+   s    g&r   r   r   r   s   @r   r,   r,   (   s    *' ' 'r   r,   c                   8   ^  \ rS rSrSrS\S\4U 4S jjrSrU =r	$ )ServiceUnavailableError/   z4Server overloaded or gateway timeout (HTTP 503/504).r%   r   c                 $   > [         TU ]  X5        g r   r/   r'   s      r   r	    ServiceUnavailableError.__init__2   s    .r   r   r)   r   s   @r   r2   r2   /   s    >/C /# / /r   r2   c                   8   ^  \ rS rSrSrS\S\4U 4S jjrSrU =r$ )JobFailedError6   z(Job execution failed on the server side.job_id	error_msgc                 H   > Xl         X l        [        TU ]  SU SU 35        g )NzJob z	 failed: )r9   r:   r   r	   )r   r9   r:   r   s      r   r	   JobFailedError.__init__9   s'    "4xy<=r   )r:   r9   r   r   s   @r   r7   r7   6   s    2>s >s > >r   r7   c                       \ rS rSrSrSrg)RequestTimeoutError?   z6A single HTTP request exceeded the configured timeout.r   Nr   r   r   r   r>   r>   ?   s    @r   r>   c                   8   ^  \ rS rSrSrS\S\4U 4S jjrSrU =r	$ )PollTimeoutErrorC   z-Polling timed out waiting for job completion.r9   elapsedc                 J   > Xl         X l        [        TU ]  SUS SU 35        g )NzTimed out after z.1fzs waiting for job )r9   rC   r   r	   )r   r9   rC   r   s      r   r	   PollTimeoutError.__init__F   s+    +GC=8J6(STr   )rC   r9   )
r   r   r   r   r   r   floatr	   r   r   r   s   @r   rA   rA   C   s"    7Us UU U Ur   rA   c                       \ rS rSrSrSrg)ResponseFormatErrorL   z>A successful API response did not match the documented schema.r   Nr   r   r   r   rH   rH   L   s    Hr   rH   c                       \ rS rSrSrSrg)ResultParseErrorP   zGA result JSONL payload could not be parsed as the expected result type.r   Nr   r   r   r   rK   rK   P   s    Qr   rK   c                       \ rS rSrSrSrg)NetworkErrorT   zNetwork connection failure.r   Nr   r   r   r   rN   rN   T   s    %r   rN   N)	Exceptionr   r   r    r#   r,   r2   r7   r>   rA   rH   rK   rN   r   r   r   <module>rQ      s    "	 "=! =)+ );  ;'X '/h />& >A+ AU( UI+ IR( R&$ &r   