�
J�g� � �j � d Z ddlmZ G d� de� � Z G d� de� � Z G d� de� � Zd S )
z,Exceptions defined by Beautiful Soup itself.� )�Unionc � � e Zd ZdZdS )�StopParsingzEException raised by a TreeBuilder if it's unable to continue parsing.N��__name__�
__module__�__qualname__�__doc__� � �^/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/bs4/exceptions.pyr r s � � � � � �O�O�O�Or r c � � e Zd ZdZdS )�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 Zd ZdZdeeef f� fd�Z� xZS )�ParserRejectedMarkupzgAn Exception to be raised when the underlying parser simply
refuses to parse the given markup.
�message_or_exceptionc �� �� t |t � � r |}|j j �dt |� � ��}t t | � � � |� � dS )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 zParserRejectedMarkup.__init__ sb �� � �*�I�6�6� M�$�A�/0�{�/C�/C�/C�S��V�V�V�#L� �
�"�D�)�)�2�2�3G�H�H�H�H�Hr ) r r r r
r r r r �
__classcell__)r s @r
r r sb �� � � � � �� �I�U�3� �>�-B� I� I� I� I� I� I� I� I� I� Ir 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� Ir