Download backend/app/exceptions.py from ParshvPatel/Multimodal_Search_Engine: direct link, hf CLI and curl.
- Browser
- Download file 407 Bytes
-
https://huggingface.co/spaces/ParshvPatel/Multimodal_Search_Engine/resolve/main/backend/app/exceptions.py
- Command line
-
hf download hf://spaces/ParshvPatel/Multimodal_Search_Engine/backend/app/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/ParshvPatel/Multimodal_Search_Engine/resolve/main/backend/app/exceptions.py
407 Bytes
| class EngineNotReadyError(Exception): | |
| """Raised when the search engine hasn't finished loading.""" | |
| pass | |
| class SKUNotFoundError(Exception): | |
| """Raised when a requested SKU doesn't exist.""" | |
| def __init__(self, sku: str): | |
| self.sku = sku | |
| super().__init__(f"SKU '{sku}' not found") | |
| class InvalidQueryError(Exception): | |
| """Raised when a search query is invalid.""" | |
| pass | |