[docs]classTaskError(Exception):""" An error is raised when the task is wrong """def__init__(self):
[docs]self.message="TaskError: Task is not found\n"
[docs]classAbductionClosedWorldAssumptionError(Exception):""" An error is raised when the abduction task is chosen in a closed-world assumption setting """def__init__(self):
[docs]self.message="AbductionClosedWolrdAssumptionError: Abduction task exists only in open-world assumption (OWA) setting"