1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-26 18:23:57 +00:00
scrapy/docs/ref/exceptions.rst
Pablo Hoffman c1c7b2d6c6 Sorted exceptions reference alphabetically
--HG--
extra : rebase_source : 1c6a192a76fcc90103ea324f6baf4387ba65e14a
2009-05-07 14:52:32 -03:00

66 lines
1.3 KiB
ReStructuredText

.. _exceptions:
.. module:: scrapy.core.exceptions
:synopsis: Core exceptions
Available Exceptions
====================
Here's a list of all exceptions included in Scrapy and their usage.
.. exception:: DontCloseDomain
DontCloseDomain
---------------
This exception can be raised by any handler of the :signal:`domain_idle` signal
to avoid the domain from being closed at this time, and wait for the next idle
state.
.. exception:: DropItem
DropItem
--------
The exception that must be raised by item pipeline stages to stop processing an
Item. For more information see :ref:`topics-item-pipeline`.
.. exception:: HttpException
HttpException
-------------
This exception is raised by the downloader when a non-200 response has been
downloaded.
.. exception:: IgnoreRequest
IgnoreRequest
-------------
This exception can be raised by the Scheduler or any downlaoder middleware to
indicate that the request should be ignored.
.. exception:: NotConfigured
NotConfigured
-------------
This exception can be raised by some components to indicate that they will
remain disabled. Those component include:
* Extensions
* Item pipelines
* Downloader middlwares
* Spider middlewares
The exception must be raised in the component constructor.
.. exception:: NotSupported
NotSupported
------------
This exception is raised to indicate an unsupported feature.