Spaces:
Runtime error
Runtime error
Download src/nepse_intelligence/common/exceptions.py from paulhemb/NepseAlphaAI: direct link, hf CLI and curl.
- Browser
- Download file 502 Bytes
-
https://huggingface.co/spaces/paulhemb/NepseAlphaAI/resolve/main/src/nepse_intelligence/common/exceptions.py
- Command line
-
hf download hf://spaces/paulhemb/NepseAlphaAI/src/nepse_intelligence/common/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/paulhemb/NepseAlphaAI/resolve/main/src/nepse_intelligence/common/exceptions.py
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 |