19 lines
334 B
Python
19 lines
334 B
Python
"""
|
|
Custom exceptions for web scraper module
|
|
"""
|
|
|
|
|
|
class WebScraperException(Exception):
|
|
"""Base exception for web scraper module"""
|
|
pass
|
|
|
|
|
|
class FetchError(WebScraperException):
|
|
"""Raised when URL fetch fails"""
|
|
pass
|
|
|
|
|
|
class ScrapingError(WebScraperException):
|
|
"""Raised when content extraction fails"""
|
|
pass
|