wrap class cast exceptions

This commit is contained in:
Athou
2014-11-10 10:14:19 +01:00
parent 3cd42d03f0
commit f4c5fd7eb4

View File

@@ -99,7 +99,11 @@ public class FeedEntryFilteringService {
} catch (TimeoutException e) {
throw new FeedEntryFilterException("Took too long evaluating expression " + filter, e);
}
return (boolean) result;
try {
return (boolean) result;
} catch (ClassCastException e) {
throw new FeedEntryFilterException(e.getMessage(), e);
}
}
@SuppressWarnings("serial")