code: public MjdbcSQLException convert(Connection conn, SQLException cause, String sql, Object... params) {
          String causeMessage = cause.getMessage();
          if (causeMessage == null) {
              causeMessage = "";
          }
          StringBuffer msg = new StringBuffer(causeMessage);
  
          msg.append(" Query: ");
          msg.append(sql);
          msg.append(" Parameters: ");
  
          if (params == null) {
              msg.append("[]");
          } else {
              msg.append(Arrays.deepToString(params));
          }
  
          MjdbcSQLException ex = new MjdbcSQLException(msg.toString(), cause.getSQLState(),
                  cause.getErrorCode());
          ex.setStackTrace(cause.getStackTrace());
  
          return ex;
      }
docs: {@inheritDoc}