presto-client/src/main/java/io/prestosql/client/QueryResults.java/QueryResults/getError
class QueryResults:    @Nullable
    @JsonProperty
    @Override
    public QueryError getError()
    {
        return error;
    }