[docs]class MaterializationEngineException(Exception):
""" generic error in materialization engine """
pass
[docs]class AlignedVolumeNotFoundException(MaterializationEngineException):
""" error raised when a aligned_volume is not found """
pass
[docs]class DataStackNotFoundException(MaterializationEngineException):
""" error raised when a datastack is not found """
pass
[docs]class MaterializeAnnotationException(Exception):
pass
[docs]class RootIDNotFoundException(MaterializeAnnotationException):
pass
[docs]class AnnotationParseFailure(MaterializeAnnotationException):
pass
[docs]class TaskFailure(Exception):
pass
[docs]class WrongModelType(KeyError):
pass
[docs]class IndexMatchError(KeyError):
pass
[docs]class TaskNotFound(KeyError):
"""Exception raised when periodic task is not found in the
periodic task dict.
"""
def __init__(self, task_name: str, task_dict: dict):
self.message = f"""
The task {task_name} is not part of the approved tasks. Please
pick one of the following: {task_dict}"""
super().__init__(self.message)
def __str__(self):
return f"{self.message}"