1.1 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.
DropItem
System Message: ERROR/3 (<stdin>, line 20)
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 22); backlink
Unknown interpreted text role "ref".IgnoreRequest
System Message: ERROR/3 (<stdin>, line 28)
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 36)
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 51)
Unknown directive type "exception".
.. exception:: NotSupported
This exception is raised to indicate an unsupported feature.