Spaces:
Paused
Paused
Download utils/errors.py from IliaLarchenko/interviewer: direct link, hf CLI and curl.
- Browser
- Download file 441 Bytes
-
https://huggingface.co/spaces/IliaLarchenko/interviewer/resolve/refs%2Fpr%2F2/utils/errors.py
- Command line
-
hf download hf://spaces/IliaLarchenko/interviewer@refs/pr/2/utils/errors.py
-
curl -L -o errors.py https://huggingface.co/spaces/IliaLarchenko/interviewer/resolve/refs%2Fpr%2F2/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 | |