presto-main/src/main/java/io/prestosql/execution/SqlTask.java/SqlTask/failed
class SqlTask:    public void failed(Throwable cause)
    {
        requireNonNull(cause, "cause is null");

        taskStateMachine.failed(cause);
    }