
    !hY                       S r SSKJr  SSKJr   " S S\5      r " S S\5      r " S S	\5      r	 " S
 S\5      r
 " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      rg)z
Scrapy core exceptions

These exceptions are documented in docs/topics/exceptions.rst. Please don't add
new exceptions here without documenting them there.
    )annotations)Anyc                      \ rS rSrSrSrg)NotConfigured   z+Indicates a missing configuration situation N__name__
__module____qualname____firstlineno____doc____static_attributes__r       X/root/1688_scrapy/alibaba-scraper/venv/lib/python3.13/site-packages/scrapy/exceptions.pyr   r      s    5r   r   c                      \ rS rSrSrSrg)_InvalidOutput   z
Indicates an invalid value has been returned by a middleware's processing method.
Internal and undocumented, it should not be raised or caught by user code.
r   Nr	   r   r   r   r   r      s    r   r   c                      \ rS rSrSrSrg)IgnoreRequest   z6Indicates a decision was made not to process a requestr   Nr	   r   r   r   r   r      s    @r   r   c                      \ rS rSrSrSrg)DontCloseSpider!   z'Request the spider not to be closed yetr   Nr	   r   r   r   r   r   !   s    1r   r   c                  4   ^  \ rS rSrSrSSU 4S jjjrSrU =r$ )CloseSpider%   z<Raise this from callbacks to request the spider to be closedc                .   > [         TU ]  5         Xl        g N)super__init__reason)selfr"   	__class__s     r   r!   CloseSpider.__init__(   s    r   )r"   )	cancelled)r"   strr
   r   r   r   r   r!   r   __classcell__r$   s   @r   r   r   %   s    F r   r   c                  8   ^  \ rS rSrSrSS.SU 4S jjjrSrU =r$ )StopDownload-   z
Stop the download of the body for a given response.
The 'fail' boolean parameter indicates whether or not the resulting partial response
should be handled by the request errback. Note that 'fail' is a keyword-only argument.
T)failc               .   > [         TU ]  5         Xl        g r   )r    r!   r.   )r#   r.   r$   s     r   r!   StopDownload.__init__4   s    	r   )r.   boolr(   r*   s   @r   r,   r,   -   s     (,   r   r,   c                  4   ^  \ rS rSrSrSSU 4S jjjrSrU =r$ )DropItem<   z Drop item from the item pipelinec                0   > [         TU ]  U5        X l        g r   )r    r!   	log_level)r#   messager6   r$   s      r   r!   DropItem.__init__?   s    !"r   )r6   r   )r7   r'   r6   z
str | Noner(   r*   s   @r   r3   r3   <   s    *# #r   r3   c                      \ rS rSrSrSrg)NotSupportedD   z.Indicates a feature or method is not supportedr   Nr	   r   r   r   r:   r:   D   s    8r   r:   c                  0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )
UsageErrorK   z&To indicate a command-line usage errorc                T   > UR                  SS5      U l        [        TU ]  " U0 UD6  g )N
print_helpT)popr@   r    r!   )r#   akwr$   s      r   r!   UsageError.__init__N   s'    &&t4!"r"r   )r@   )rB   r   rC   r   r(   r*   s   @r   r=   r=   K   s    0# #r   r=   c                      \ rS rSrSrSrg)ScrapyDeprecationWarningS   zjWarning category for deprecated features, since the default
DeprecationWarning is silenced on Python 2.7+
r   Nr	   r   r   r   rF   rF   S   s    r   rF   c                      \ rS rSrSrSrg)ContractFailY   z*Error raised in case of a failing contractr   Nr	   r   r   r   rI   rI   Y   s    4r   rI   N)r   
__future__r   typingr   	Exceptionr   	TypeErrorr   r   r   r   r,   r3   r:   r=   WarningrF   AssertionErrorrI   r   r   r   <module>rQ      s    # 
6I 6Y AI A2i 2) 	9 	#y #99 9# #w 5> 5r   