
    8'h                          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)c                         e Zd Zd fd	Z xZS )YFExceptionc                 $    t         |   |       y )Nsuper__init__)selfdescription	__class__s     O/var/www/html/trade_iq/venv/lib/python3.12/site-packages/yfinance/exceptions.pyr   zYFException.__init__   s    %    ) __name__
__module____qualname__r   __classcell__r
   s   @r   r   r      s    & &r   r   c                       e Zd Zy)YFDataExceptionN)r   r   r    r   r   r   r      s    r   r   c                        e Zd Z fdZ xZS )YFNotImplementedErrorc                 ,    t         |   d| d       y )NzHave not implemented fetching 'z' from Yahoo APIr   )r   method_namer
   s     r   r   zYFNotImplementedError.__init__   s    :;-GWXYr   r   r   s   @r   r   r   
   s    Z Zr   r   c                        e Zd Z fdZ xZS )YFTickerMissingErrorc                 L    t         |   d| d|        || _        || _        y )N$z: possibly delisted; )r   r   	rationaleticker)r   r    r   r
   s      r   r   zYFTickerMissingError.__init__   s,    1VH$9)EF"r   r   r   s   @r   r   r      s     r   r   c                        e Zd Z fdZ xZS )YFTzMissingErrorc                 &    t         |   |d       y )Nzno timezone foundr   r   r    r
   s     r   r   zYFTzMissingError.__init__   s    !45r   r   r   s   @r   r"   r"      s    6 6r   r"   c                        e Zd Z fdZ xZS )YFPricesMissingErrorc                 f    || _         |dk7  rt        | 	  |d|        y t        | 	  |d       y )Nr   zno price data found zno price data found)
debug_infor   r   )r   r    r(   r
   s      r   r   zYFPricesMissingError.__init__   s9    $GV';J<%HIGV%:;r   r   r   s   @r   r&   r&      s    < <r   r&   c                        e Zd Z fdZ xZS )YFEarningsDateMissingc                 &    t         |   |d       y )Nzno earnings dates foundr   r$   s     r   r   zYFEarningsDateMissing.__init__&   s    !:;r   r   r   s   @r   r*   r*   $   s    < <r   r*   c                        e Zd Z fdZ xZS )YFInvalidPeriodErrorc                 r    || _         || _        || _        t        |   | j                    d| d|        y )Nz
: Period 'z' is invalid, must be one of )r    invalid_periodvalid_rangesr   r   )r   r    r/   r0   r
   s       r   r   zYFInvalidPeriodError.__init__+   s@    ,(DKK=
>2BB_`l_mnor   r   r   s   @r   r-   r-   *   s    p pr   r-   N)
	Exceptionr   r   NotImplementedErrorr   r   r"   r&   r*   r-   r   r   r   <module>r3      sm   &) &
	k 	Z/ Z
; 6+ 6
</ <<0 <p; pr   