
    9i                         S r SSKJr  SSKJr  SSKJr   " S S\5      r " S S\5      r " S	 S
\5      r	 " S S\5      r
g)z)
This module defines exceptions for BCE.
    )utils)str)bytesc                       \ rS rSrSrS rSrg)BceError   zBase Error of BCE.c                 .    [         R                  X5        g N)	Exception__init__selfmessages     R/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/baidubce/exception.pyr   BceError.__init__   s    4)     N__name__
__module____qualname____firstlineno____doc__r   __static_attributes__r   r   r   r   r      s
    *r   r   c                       \ rS rSrSrS rSrg)BceClientError   zError from BCE client.c                 .    [         R                  X5        g r
   )r   r   r   s     r   r   BceClientError.__init__   s    $(r   r   Nr   r   r   r   r   r      s
     )r   r   c                   (    \ rS rSrSrSr SS jrSrg)BceServerError!   zError from BCE servers.s   RequestExpiredNc                 R    [         R                  X5        X l        X0l        X@l        g r
   )r   r   status_codecode
request_id)r   r   r$   r%   r&   s        r   r   BceServerError.__init__&   s     $(&	$r   )r%   r&   r$   NNN)r   r   r   r   r   REQUEST_EXPIREDr   r   r   r   r   r!   r!   !   s    !'O-%r   r!   c                   "    \ rS rSrSrSS jrSrg)BceHttpClientError-   zException threw after retryNc                 ^    [         R                  X5        X l        X0l        X@l        XPl        g r
   )r   r   
last_errorr$   r%   r&   )r   r   r.   r$   r%   r&   s         r   r   BceHttpClientError.__init__/   s%    $($&	$r   )r%   r.   r&   r$   r(   r   r   r   r   r+   r+   -   s
    %%r   r+   N)r   baidubcer   builtinsr   r   r   r   r   r!   r+   r   r   r   <module>r2      sE      *y *)X )	%X 	%% %r   