1.4 KiB
Exceptions
Built-in Exceptions reference
System Message: ERROR/3 (<stdin>, line 7)
Unknown directive type "module".
.. module:: scrapy.core.exceptions :synopsis: Core exceptions
Here's a list of all exceptions included in Scrapy and their usage.
DontCloseDomain
System Message: ERROR/3 (<stdin>, line 20)
Unknown directive type "exception".
.. exception:: 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.
System Message: ERROR/3 (<stdin>, line 22); backlink
Unknown interpreted text role "signal".DropItem
System Message: ERROR/3 (<stdin>, line 29)
Unknown directive type "exception".
.. exception:: DropItem
The exception that must be raised by item pipeline stages to stop processing an Item. For more information see :ref:`topics-item-pipeline`.
System Message: ERROR/3 (<stdin>, line 31); backlink
Unknown interpreted text role "ref".HttpException
System Message: ERROR/3 (<stdin>, line 37)
Unknown directive type "exception".
.. exception:: HttpException
This exception is raised by the downloader when a non-200 response has been downloaded.
IgnoreRequest
System Message: ERROR/3 (<stdin>, line 45)
Unknown directive type "exception".
.. exception:: IgnoreRequest
This exception can be raised by the Scheduler or any downlaoder middleware to indicate that the request should be ignored.
NotConfigured
System Message: ERROR/3 (<stdin>, line 53)
Unknown directive type "exception".
.. exception:: 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.
NotSupported
System Message: ERROR/3 (<stdin>, line 68)
Unknown directive type "exception".
.. exception:: NotSupported
This exception is raised to indicate an unsupported feature.