2023-01-26 18:17:35 -05:00
|
|
|
from SpiffWorkflow.exceptions import WorkflowTaskException
|
2022-10-12 10:19:53 -04:00
|
|
|
|
|
|
|
|
2023-01-26 18:17:35 -05:00
|
|
|
class WorkflowDataException(WorkflowTaskException):
|
2022-10-12 10:19:53 -04:00
|
|
|
|
2023-01-26 18:17:35 -05:00
|
|
|
def __init__(self, message, task, data_input=None, data_output=None):
|
2022-10-12 10:19:53 -04:00
|
|
|
"""
|
|
|
|
:param task: the task that generated the error
|
|
|
|
:param data_input: the spec of the input variable (if a data input)
|
|
|
|
:param data_output: the spec of the output variable (if a data output)
|
|
|
|
"""
|
2023-01-26 18:17:35 -05:00
|
|
|
super().__init__(message, task)
|
2022-10-12 10:19:53 -04:00
|
|
|
self.data_input = data_input
|
|
|
|
self.data_output = data_output
|