paulhemb's picture
Update src/nepse_intelligence/common/exceptions.py
8620ce3 verified
Raw History Blame Contribute Delete
502 Bytes
"""Custom exceptions for the NEPSE intelligence system."""
class NepseIntelligenceError(Exception):
"""Base exception for all layers."""
pass
class ScraperError(NepseIntelligenceError):
"""Raised when an API request or parsing fails."""
pass
class DataValidationError(NepseIntelligenceError):
"""Raised when input data is missing required columns or invalid."""
pass
class AuthenticationError(ScraperError):
"""Raised when authentication to an API fails."""
pass