Download utils/errors.py from spicy3377/Japheth: direct link, hf CLI and curl.
- Browser
- Download file 441 Bytes
-
https://huggingface.co/spaces/spicy3377/Japheth/resolve/main/utils/errors.py
- Command line
-
hf download hf://spaces/spicy3377/Japheth/utils/errors.py
-
curl -L -o errors.py https://huggingface.co/spaces/spicy3377/Japheth/resolve/main/utils/errors.py
441 Bytes
| class AudioConversionError(Exception): | |
| """Exception raised for errors in the audio conversion process.""" | |
| pass | |
| class APIError(Exception): | |
| """Custom exception for API error handling.""" | |
| def __init__(self, message, status_code=None, details=None): | |
| if details: | |
| super().__init__(f"{message} - Details: {details}") | |
| else: | |
| super().__init__(message) | |
| self.status_code = status_code | |