Download backend/core/exceptions.py from jessejohnson/plg4-dev-server: direct link, hf CLI and curl.
- Browser
- Download file 412 Bytes
-
https://huggingface.co/spaces/jessejohnson/plg4-dev-server/resolve/main/backend/core/exceptions.py
- Command line
-
hf download hf://spaces/jessejohnson/plg4-dev-server/backend/core/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/jessejohnson/plg4-dev-server/resolve/main/backend/core/exceptions.py
412 Bytes
| # Custom exception handlers for the Recipe Recommendation Bot | |
| class RecipeNotFoundError(Exception): | |
| """Raised when a recipe is not found""" | |
| pass | |
| class LLMServiceError(Exception): | |
| """Raised when LLM service encounters an error""" | |
| pass | |
| class VectorStoreError(Exception): | |
| """Raised when vector store operations fail""" | |
| pass | |
| # TODO: Add more specific exception classes and error handlers | |