code: public QueryResult whenSQLQuery(final String sql, 
                                      final List<Parameter> parameters) 
          throws SQLException {
  
          if (this.queryHandler == null) {
              throw new SQLException("No query handler");
          } // end of if
  
          return this.queryHandler.apply(sql, parameters);
      }
docs: {@inheritDoc}