
    h                     V    d Z ddlmZ  G d de      Z G d de      Z G d de      Zy	)
z,Exceptions defined by Beautiful Soup itself.    )Unionc                       e Zd ZdZy)StopParsingzEException raised by a TreeBuilder if it's unable to continue parsing.N__name__
__module____qualname____doc__     v/var/labsstorage/home/kalaiyarasan.offl.2004/htdocs/course/socket/myenv/lib/python3.12/site-packages/bs4/exceptions.pyr   r      s    Or   r   c                       e Zd ZdZy)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                   2     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        |   |       y)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__   s?     *I6$A/0{{/C/CSV#L "D23GHr   )	r   r   r	   r
   r   r   r   r   __classcell__)r   s   @r   r   r      s%    IU3	>-B I Ir   r   N)r
   typingr   r   r   
ValueErrorr   r   r   r   r   <module>r      s3    2 P) Pj I9 Ir   