
    3 d                     >   d Z  G d de          Z G d de          Z G d de          Z G d de          Z G d	 d
e          Z G d de          Z G d de          Z	 G d de          Z
 G d de          Z G d de          Z G d de          ZdS )z
Scrapy core exceptions

These exceptions are documented in docs/topics/exceptions.rst. Please don't add
new exceptions here without documenting them there.
c                       e Zd ZdZdS )NotConfiguredz+Indicates a missing configuration situationN__name__
__module____qualname____doc__     1lib/python3.11/site-packages/scrapy/exceptions.pyr   r      s        55Dr
   r   c                       e Zd ZdZdS )_InvalidOutputz
    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.
    Nr   r	   r
   r   r   r      s         
 	Dr
   r   c                       e Zd ZdZdS )IgnoreRequestz6Indicates a decision was made not to process a requestNr   r	   r
   r   r   r      s        @@@@r
   r   c                       e Zd ZdZdS )DontCloseSpiderz'Request the spider not to be closed yetNr   r	   r
   r   r   r   !   s        11Dr
   r   c                   $     e Zd ZdZd fd	Z xZS )CloseSpiderz<Raise this from callbacks to request the spider to be closed	cancelledc                 V    t                                                       || _        d S N)super__init__reason)selfr   	__class__s     r   r   zCloseSpider.__init__*   s$    r
   )r   r   r   r   r   r   __classcell__r   s   @r   r   r   '   sC        FF         r
   r   c                   (     e Zd ZdZdd fd
Z xZS )StopDownloadz
    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                V    t                                                       || _        d S r   )r   r   r!   )r   r!   r   s     r   r   zStopDownload.__init__6   s$    			r
   r   r   s   @r   r    r    /   sQ           $           r
   r    c                       e Zd ZdZdS )DropItemz Drop item from the item pipelineNr   r	   r
   r   r$   r$   >   s        **Dr
   r$   c                       e Zd ZdZdS )NotSupportedz.Indicates a feature or method is not supportedNr   r	   r
   r   r&   r&   D   s        88Dr
   r&   c                   "     e Zd ZdZ fdZ xZS )
UsageErrorz&To indicate a command-line usage errorc                 p    |                     dd          | _         t                      j        |i | d S )N
print_helpT)popr*   r   r   )r   akwr   s      r   r   zUsageError.__init__P   s:    &&t44!"r"""""r
   r   r   s   @r   r(   r(   M   s>        00# # # # # # # # #r
   r(   c                       e Zd ZdZdS )ScrapyDeprecationWarningzrWarning category for deprecated features, since the default
    DeprecationWarning is silenced on Python 2.7+
    Nr   r	   r
   r   r/   r/   U   s          	Dr
   r/   c                       e Zd ZdZdS )ContractFailz*Error raised in case of a failing contractNr   r	   r
   r   r1   r1   ]   s        44Dr
   r1   N)r   	Exceptionr   	TypeErrorr   r   r   r   r    r$   r&   r(   Warningr/   AssertionErrorr1   r	   r
   r   <module>r6      s   	 	 	 	 	I 	 	 		 	 	 	 	Y 	 	 	A A A A AI A A A	 	 	 	 	i 	 	 	    )   	 	 	 	 	9 	 	 		 	 	 	 	y 	 	 		 	 	 	 	9 	 	 	# # # # # # # #	 	 	 	 	w 	 	 		 	 	 	 	> 	 	 	 	 	r
   