* ignore all cache exceptions

This commit is contained in:
Reinhard Pointner 2011-11-14 09:25:22 +00:00
parent 2d0bb249a8
commit d4a70f0fbc
1 changed files with 10 additions and 2 deletions

View File

@ -75,7 +75,11 @@ public abstract class AbstractEpisodeListProvider implements EpisodeListProvider
public void putSearchResult(String key, Collection<? extends SearchResult> value) {
cache.put(new Element(key(id, "SearchResult", key), value.toArray(new SearchResult[0])));
try {
cache.put(new Element(key(id, "SearchResult", key), value.toArray(new SearchResult[0])));
} catch (Exception e) {
Logger.getLogger(AbstractEpisodeListProvider.class.getName()).log(Level.WARNING, e.getMessage(), e);
}
}
@ -94,7 +98,11 @@ public abstract class AbstractEpisodeListProvider implements EpisodeListProvider
public void putEpisodeList(int key, Locale language, List<Episode> episodes) {
cache.put(new Element(key(id, "EpisodeList", key, language.getLanguage()), episodes.toArray(new Episode[0])));
try {
cache.put(new Element(key(id, "EpisodeList", key, language.getLanguage()), episodes.toArray(new Episode[0])));
} catch (Exception e) {
Logger.getLogger(AbstractEpisodeListProvider.class.getName()).log(Level.WARNING, e.getMessage(), e);
}
}