docs: public SQLException exceptionWithQuery(ByteBuffer buffer, SQLException sqlEx,
        boolean explicitClosed) {
      if (options.dumpQueriesOnException || sqlEx.getErrorCode() == 1064 || explicitClosed) {
        return exceptionWithQuery(subQuery(buffer), sqlEx, explicitClosed);
      }
      return sqlEx;
    }