Download src/core/services/exceptions.py from anaselamr/yaz: direct link, hf CLI and curl.
- Browser
- Download file 974 Bytes
-
https://huggingface.co/spaces/anaselamr/yaz/resolve/main/src/core/services/exceptions.py
- Command line
-
hf download hf://spaces/anaselamr/yaz/src/core/services/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/anaselamr/yaz/resolve/main/src/core/services/exceptions.py
974 Bytes
| """ | |
| Common exceptions for YAZ Care platform | |
| """ | |
| class ValidationException(ValueError): | |
| """Raised when validation fails""" | |
| pass | |
| class NotFoundException(KeyError): | |
| """Raised when a resource is not found""" | |
| pass | |
| class AuthorizationException(PermissionError): | |
| """Raised when authorization fails""" | |
| pass | |
| class ConfigurationException(Exception): | |
| """Raised when configuration is invalid""" | |
| pass | |
| class TransportException(Exception): | |
| """Raised when transport operations fail""" | |
| pass | |
| class ManufacturingException(Exception): | |
| """Raised when manufacturing operations fail (Fabrica module)""" | |
| pass | |
| class ClinicalException(Exception): | |
| """Raised when clinical operations fail""" | |
| pass | |
| __all__ = [ | |
| 'ValidationException', | |
| 'NotFoundException', | |
| 'AuthorizationException', | |
| 'ConfigurationException', | |
| 'TransportException', | |
| 'ManufacturingException', | |
| 'ClinicalException', | |
| 'TransportException' | |
| ] | |