
    Mh                     j    d Z ddlmZ  G d de          Z G d de          Z G d de          Zd	S )
z,Exceptions defined by Beautiful Soup itself.    )Unionc                       e Zd ZdZdS )StopParsingzEException raised by a TreeBuilder if it's unable to continue parsing.N__name__
__module____qualname____doc__     N/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/bs4/exceptions.pyr   r      s        OOOOr   r   c                       e Zd ZdZdS )FeatureNotFoundzmException raised by the BeautifulSoup constructor if no parser with the
    requested features is found.
    Nr   r   r   r   r   r   
   s           r   r   c                   8     e Zd ZdZdeeef         f fdZ xZS )ParserRejectedMarkupzgAn Exception to be raised when the underlying parser simply
    refuses to parse the given markup.
    message_or_exceptionc                     t          |t                    r |}|j        j        dt	          |          }t          t          |                               |           dS )zzExplain why the parser rejected the given markup, either
        with a textual explanation or another exception.
        z: N)
isinstance	Exception	__class__r   strsuperr   __init__)selfr   er   s      r   r   zParserRejectedMarkup.__init__   sb     *I66 	M$A/0{/C/C/CSVVV#L "D))223GHHHHHr   )	r   r   r	   r
   r   r   r   r   __classcell__)r   s   @r   r   r      sb         IU3	>-B I I I I I I I I I Ir   r   N)r
   typingr   r   r   
ValueErrorr   r   r   r   r   <module>r      s    2 2      P P P P P) P P P    j   I I I I I9 I I I I Ir   