mirror of https://github.com/scrapy/scrapy.git
33 lines
678 B
Python
33 lines
678 B
Python
"""
|
|
Scrapy core exceptions
|
|
|
|
These exceptions are documented in docs/ref/exceptions.rst. Please don't add
|
|
new exceptions here without documenting them there.
|
|
"""
|
|
|
|
# Internal
|
|
|
|
class NotConfigured(Exception):
|
|
"""Indicates a missing configuration situation"""
|
|
pass
|
|
|
|
# HTTP and crawling
|
|
|
|
class IgnoreRequest(Exception):
|
|
"""Indicates a decision was made not to process a request"""
|
|
pass
|
|
|
|
class DontCloseDomain(Exception):
|
|
"""Request the domain not to be closed yet"""
|
|
pass
|
|
|
|
# Items
|
|
|
|
class DropItem(Exception):
|
|
"""Drop item from the item pipeline"""
|
|
pass
|
|
|
|
class NotSupported(Exception):
|
|
"""Indicates a feature or method is not supported"""
|
|
pass
|