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

        stateMachine.transitionToFailed(cause);
    }