code: protected CmsDbSqlException wrapException(PreparedStatement stmt, SQLException e) {
  
          return new CmsDbSqlException(
              Messages.get().container(Messages.ERR_GENERIC_SQL_1, CmsDbSqlException.getErrorQuery(stmt)),
              e);
      }
docs: Wrap a SQL exception into a CmsDbSqlException.<p>
  
  @param stmt the used statement
  @param e the exception
  
  @return the CmsDbSqlException