Spaces:
Sleeping
Sleeping
Download src/utils/exceptions.py from MCP-1st-Birthday/DeepBoner: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/spaces/MCP-1st-Birthday/DeepBoner/resolve/main/src/utils/exceptions.py
- Command line
-
hf download hf://spaces/MCP-1st-Birthday/DeepBoner/src/utils/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/MCP-1st-Birthday/DeepBoner/resolve/main/src/utils/exceptions.py
1.07 kB
| """Custom exceptions for DeepBoner.""" | |
| class DeepBonerError(Exception): | |
| """Base exception for all DeepBoner errors.""" | |
| pass | |
| class SearchError(DeepBonerError): | |
| """Raised when a search operation fails.""" | |
| pass | |
| class JudgeError(DeepBonerError): | |
| """Raised when the judge fails to assess evidence.""" | |
| pass | |
| class ConfigurationError(DeepBonerError): | |
| """Raised when configuration is invalid.""" | |
| pass | |
| class RateLimitError(SearchError): | |
| """Raised when we hit API rate limits.""" | |
| pass | |
| class EmbeddingError(DeepBonerError): | |
| """Raised when embedding or vector store operations fail.""" | |
| pass | |
| class LLMError(DeepBonerError): | |
| """Raised when LLM operations fail (API errors, parsing errors, etc.).""" | |
| pass | |
| class QuotaExceededError(LLMError): | |
| """Raised when LLM API quota is exceeded (402 errors).""" | |
| pass | |
| class ModalError(DeepBonerError): | |
| """Raised when Modal sandbox operations fail.""" | |
| pass | |
| class SynthesisError(DeepBonerError): | |
| """Raised when report synthesis fails.""" | |
| pass | |