Exceptions
Custom exceptions for the API client. These exceptions encapsulate common errors that can occur during API calls and data post-processing.
- exception owimetadatabase_preprocessor.utility.exceptions.APIException(message: str)
Bases:
Exception
Base exception for all errors raised by API.
- exception owimetadatabase_preprocessor.utility.exceptions.APIConnectionError(message: str, response: Response | None = None)
Bases:
APIException
Exception raised when the API cannot be reached or returns a failure.
- exception owimetadatabase_preprocessor.utility.exceptions.DataNotFoundError(message: str = 'No data found for the given search criteria.')
Bases:
APIException
Exception raised when no data is found for the given query parameters.
- exception owimetadatabase_preprocessor.utility.exceptions.DataProcessingError(message: str = 'Error during data processing.')
Bases:
APIException
Exception raised when there is a problem while processing the data.
- exception owimetadatabase_preprocessor.utility.exceptions.InvalidParameterError(message: str = 'Invalid or missing parameters for the request.')
Bases:
APIException
Exception raised when query parameters are invalid or missing.