Source code for image_analysis_3D.featurization_utils.errors
[docs]
class ProcessorTypeError(Exception):
"""
Exception raised when an unrecognized processor type is encountered.
Use 'CPU' or 'GPU' as valid processor types.
"""
[docs]
def __str__(self) -> str:
"""Return a standardized error message."""
return "Processor type not recognized. Use 'CPU' or 'GPU'. "