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.
System Message: ERROR/3 (<stdin>, line 17)
Unknown directive type "exception".
.. 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.
System Message: ERROR/3 (<stdin>, line 22); backlink
Unknown interpreted text role "signal".System Message: ERROR/3 (<stdin>, line 26)
Unknown directive type "exception".
.. 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`.
System Message: ERROR/3 (<stdin>, line 31); backlink
Unknown interpreted text role "ref".System Message: ERROR/3 (<stdin>, line 34)
Unknown directive type "exception".
.. exception:: HttpException
HttpException
This exception is raised by the downloader when a non-200 response has been downloaded.
System Message: ERROR/3 (<stdin>, line 42)
Unknown directive type "exception".
.. exception:: IgnoreRequest
IgnoreRequest
This exception can be raised by the Scheduler or any downlaoder middleware to indicate that the request should be ignored.
System Message: ERROR/3 (<stdin>, line 50)
Unknown directive type "exception".
.. 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.
System Message: ERROR/3 (<stdin>, line 65)
Unknown directive type "exception".
.. exception:: NotSupported
NotSupported
This exception is raised to indicate an unsupported feature.