getMessage(), $e->getCode(), $e); } public static function invalidTaskReturnType(TaskInterface $task): self { return new self(sprintf('The %s task did not return a TaskResult.', $task->getConfig()->getName())); } }