bhf_smarthealth.exceptions#
This module contains custom Exception classes for error-handling within the Smart Health pipeline
Exceptions#
Base exception class for the Smart Health library |
|
Custom exception raised if a date cannot be converted to ISO 8601 format |
|
Base exception class for errors processing raw data |
|
Custom exception to raise for errors with data volume |
|
Custom exception to be raised for if raw JSON does not have the expected keys |
|
Custom exception to be raised for errors whilst validating raw JSON file metadata |
|
Custom exception to use as a wrapper around pydantic's ValidationError |
|
Custom exception to raise if a file contains no usable data |
|
Custom exception to raise if a file contains no usable data |
Module Contents#
- exception bhf_smarthealth.exceptions.SmartHealthBaseException(message: str)[source]#
Bases:
ExceptionBase exception class for the Smart Health library
- exception bhf_smarthealth.exceptions.ISODateConversionError(message: str)[source]#
Bases:
SmartHealthBaseExceptionCustom exception raised if a date cannot be converted to ISO 8601 format
- exception bhf_smarthealth.exceptions.RawDataProcessingError(message: str)[source]#
Bases:
SmartHealthBaseExceptionBase exception class for errors processing raw data
- exception bhf_smarthealth.exceptions.DataVolumeError(message: str)[source]#
Bases:
SmartHealthBaseExceptionCustom exception to raise for errors with data volume
- exception bhf_smarthealth.exceptions.JSONStructureError(message: str)[source]#
Bases:
RawDataProcessingErrorCustom exception to be raised for if raw JSON does not have the expected keys
- exception bhf_smarthealth.exceptions.MetadataValidationError(message: str)[source]#
Bases:
RawDataProcessingErrorCustom exception to be raised for errors whilst validating raw JSON file metadata
- exception bhf_smarthealth.exceptions.DataValidationError(message: str)[source]#
Bases:
RawDataProcessingErrorCustom exception to use as a wrapper around pydantic’s ValidationError
- exception bhf_smarthealth.exceptions.EmptyFileError(message: str)[source]#
Bases:
DataVolumeErrorCustom exception to raise if a file contains no usable data
- exception bhf_smarthealth.exceptions.InsufficientValidDataError(message: str)[source]#
Bases:
DataVolumeErrorCustom exception to raise if a file contains no usable data