Source code for api_example.errors

[docs] class APIError(Exception): """ Base class for API service """ pass
[docs] class APIModelNotFoundError(APIError): """ Raised when the Machine Learning (ML) model file cannot be found """ pass
[docs] class APIModelNotLoadableError(APIError): """ Raised when the Machine Learning (ML) model cannot be loaded back into memory """ pass
[docs] class APIExternalDataLoadModuleError(APIError): """ Raised when there is an issue with the external data loader module """ pass