A function that is called when a task fails.
The type of the input.
The message of the error that occurred during the task.
The input that was passed to the task.
The index of the task in the order of the original input data.
A function that is called when a task fails.