mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
wrap class cast exceptions
This commit is contained in:
@@ -99,7 +99,11 @@ public class FeedEntryFilteringService {
|
|||||||
} catch (TimeoutException e) {
|
} catch (TimeoutException e) {
|
||||||
throw new FeedEntryFilterException("Took too long evaluating expression " + filter, e);
|
throw new FeedEntryFilterException("Took too long evaluating expression " + filter, e);
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
return (boolean) result;
|
return (boolean) result;
|
||||||
|
} catch (ClassCastException e) {
|
||||||
|
throw new FeedEntryFilterException(e.getMessage(), e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("serial")
|
@SuppressWarnings("serial")
|
||||||
|
|||||||
Reference in New Issue
Block a user