An exception thrown when an error occurs inside the Taste engine.
281282283284285286287288289290
itemIDs.add(rs.getLong(1)); } return itemIDs; } catch (SQLException sqle) { log.warn("Exception while retrieving recommendable items", sqle); throw new TasteException(sqle); } finally { IOUtils.quietClose(rs, stmt, conn); } }
309310311312313314315316317318
} finally { IOUtils.quietClose(stmt); } } catch (SQLException sqle) { log.warn("Exception while updating/deleting diffs", sqle); throw new TasteException(sqle); } finally { IOUtils.quietClose(conn); } }
330331332333334335336337338339
rs = stmt.executeQuery(diffsExistSQL); rs.next(); return rs.getInt(1) > 0; } catch (SQLException sqle) { log.warn("Exception while deleting diffs", sqle); throw new TasteException(sqle); } finally { IOUtils.quietClose(rs, stmt, conn); } }
287288289290291292293294295296297
return new GenericUserPreferenceArray(prefs); } catch (SQLException sqle) { log.warn("Exception while retrieving user", sqle); throw new TasteException(sqle); } finally { IOUtils.quietClose(rs, stmt, conn); } }
332333334335336337338339340341342
return result; } catch (SQLException sqle) { log.warn("Exception while exporting all data", sqle); throw new TasteException(sqle); } finally { IOUtils.quietClose(rs, stmt, conn); } }
379380381382383384385386387388389
422423424425426427428429430431432
return result; } catch (SQLException sqle) { log.warn("Exception while retrieving item s", sqle); throw new TasteException(sqle); } finally { IOUtils.quietClose(rs, stmt, conn); } }
452453454455456457458459460461
} else { return null; } } catch (SQLException sqle) { log.warn("Exception while retrieving prefs for item", sqle); throw new TasteException(sqle); } finally { IOUtils.quietClose(rs, stmt, conn); } }
484485486487488489490491492493
} else { return null; } } catch (SQLException sqle) { log.warn("Exception while retrieving time for item", sqle); throw new TasteException(sqle); } finally { IOUtils.quietClose(rs, stmt, conn); } }
527528529530531532533534535536
prefs.add(buildPreference(rs)); } return prefs; } catch (SQLException sqle) { log.warn("Exception while retrieving prefs for item", sqle); throw new TasteException(sqle); } finally { IOUtils.quietClose(rs, stmt, conn); } }