o
    MK&h·  ã                   @   sD   d Z ddlmZ G dd„ deƒZG dd„ deƒZG d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__© r
   r
   úA/var/www/html/venv/lib/python3.10/site-packages/bs4/exceptions.pyr      ó    r   c                   @   r   )ÚFeatureNotFoundzmException raised by the BeautifulSoup constructor if no parser with the
    requested features is found.
    Nr   r
   r
   r
   r   r   
   r   r   c                       s.   e Zd ZdZdeeef f‡ fdd„Z‡  ZS )ÚParserRejectedMarkupzgAn Exception to be raised when the underlying parser simply
    refuses to parse the given markup.
    Úmessage_or_exceptionc                    s6   t |tƒr|}d|jjt|ƒf }tt| ƒ |¡ dS )zzExplain why the parser rejected the given markup, either
        with a textual explanation or another exception.
        z%s: %sN)Ú
isinstanceÚ	ExceptionÚ	__class__r   ÚstrÚsuperr   Ú__init__)Úselfr   Úe©r   r
   r   r      s   
zParserRejectedMarkup.__init__)	r   r   r   r	   r   r   r   r   Ú__classcell__r
   r
   r   r   r      s    "r   N)r	   Útypingr   r   r   Ú
ValueErrorr   r   r
   r
   r
   r   Ú<module>   s
    