
    5ja	                        S SK JrJrJr  \(       a  SSKJ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 " 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())    )TYPE_CHECKINGListSet   )Responsec                   H    \ rS rSr% SrS\S'   SS\S\4S jjrS	\4S
 jr	Sr
g)LDError   zBase class for exceptions in this lseg-data module.

Parameters
----------
code: int
    error code for this exception
message: str
    error description for this exception
r   responseNcodemessagec                     Xl         X l        g )Nr   r   )selfr   r   s      P/root/lseg-credit/backend/venv/lib/python3.13/site-packages/lseg/data/_errors.py__init__LDError.__init__   s    	    returnc                 ~    U R                   (       a  SU R                    SU R                   3nU$ U R                   nU$ )NzError code z | r   )r   outputs     r   __str__LDError.__str__   s<    99"499+S?F  ~Fr   r   )NN)__name__
__module____qualname____firstlineno____doc____annotations__intstrr   r   __static_attributes__ r   r   r	   r	      s.     S #  r   r	   c                       \ rS rSrSrg)SessionError!   r#   Nr   r   r   r   r"   r#   r   r   r%   r%   !       r   r%   c                       \ rS rSrSrg)StreamingError%   r#   Nr'   r#   r   r   r*   r*   %   r(   r   r*   c                       \ rS rSrSrg)StreamConnectionError)   r#   Nr'   r#   r   r   r-   r-   )   r(   r   r-   c                       \ rS rSrSrg)PlatformSessionError-   r#   Nr'   r#   r   r   r0   r0   -   r(   r   r0   c                       \ rS rSrSrg)DesktopSessionError1   r#   Nr'   r#   r   r   r3   r3   1   r(   r   r3   c                       \ rS rSrSrg)ESGError5   r#   Nr'   r#   r   r   r6   r6   5   r(   r   r6   c                       \ rS rSrSrg)NewsHeadlinesError9   r#   Nr'   r#   r   r   r9   r9   9   r(   r   r9   c                       \ rS rSrSrg)EndpointError=   r#   Nr'   r#   r   r   r<   r<   =   r(   r   r<   c                       \ rS rSrSrg)StreamErrorA   r#   Nr'   r#   r   r   r?   r?   A   r(   r   r?   c                       \ rS rSrSrg)StreamingPricesErrorE   r#   Nr'   r#   r   r   rB   rB   E   r(   r   rB   c                   (   ^  \ rS rSrU 4S jrSrU =r$ )ItemWasNotRequestedI   c                 ^   > U [        U5      S:  a  SOS 3n[        TU ]	  U SU SU 3S9  g )Nr   s  z was not requested : r   )lensuperr   )r   	item_typenot_requested	requested	__class__s       r   r   ItemWasNotRequested.__init__J   sD     k]);a)?#R!HI	I;a>ST]S^!_`r   r#   )r   r   r   r   r   r"   __classcell__rQ   s   @r   rE   rE   I   s    a ar   rE   c                       \ rS rSrSrg)EnvErrorO   r#   Nr'   r#   r   r   rV   rV   O   r(   r   rV   c                       \ rS rSrSrg)BondPricingErrorS   r#   Nr'   r#   r   r   rY   rY   S   r(   r   rY   c                       \ rS rSrSrg)FinancialContractsErrorW   r#   Nr'   r#   r   r   r\   r\   W   r(   r   r\   c                       \ rS rSrSrg)RequiredError[   r#   Nr'   r#   r   r   r_   r_   [   r(   r   r_   c                       \ rS rSrSrg)ConfigurationError_   r#   Nr'   r#   r   r   rb   rb   _   r(   r   rb   c                   N   ^  \ rS rSrS\\\      S\\   S\S\4U 4S jjrSrU =r	$ )
ScopeErrorc   required_scopeavailable_scopekeymethodc                 2  > U Vs/ s H  oUU-
  PM	     nnXl         X l        X0l        X@l        X`l        [
        TU ]  SU SU SSR                  [        [        U5      5       SU=(       d    S SSR                  [        [        U5      5       3
S9  g s  snf )	NzInsufficient scope for key=z	, method=z.
Required scopes: z OR z
Available scopes: z{}z
Missing scopes: rK   )
rg   rh   ri   rj   missing_scopesrM   r   joinmapr!   )r   rg   rh   ri   rj   scoperl   rQ   s          r   r   ScopeError.__init__d   s     @NN~e/1~N,.,1#ix H  &C^,D EF G!!0!8D 9 :%{{3sN+CDEG 	 	
 Os   B)rh   ri   rj   rl   rg   )
r   r   r   r   r   r   r!   r   r"   rS   rT   s   @r   re   re   c   s?    
SX
 S
 	

 
 
r   re   N)typingr   r   r   delivery._data._data_providerr   	Exceptionr	   r%   r*   r-   r0   r3   r6   r9   r<   r?   rB   rE   rV   rY   r\   r_   rb   re   r#   r   r   <module>rt      s    + +7i 4	7 		W 		G 		< 		, 		w 		 		G 		' 		7 	a' a	w 		w 		g 		G 		 	
 
r   