From 9d5ac4b039ecb8f0dd37ede8bc0ae771f1580903 Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Mon, 11 Mar 2019 22:36:00 +0100 Subject: Catch FeedIO reader exception. Closes #413 Closes #412 --- lib/Fetcher/IFeedFetcher.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/Fetcher/IFeedFetcher.php') diff --git a/lib/Fetcher/IFeedFetcher.php b/lib/Fetcher/IFeedFetcher.php index ecc0ffc16..81bf8526f 100644 --- a/lib/Fetcher/IFeedFetcher.php +++ b/lib/Fetcher/IFeedFetcher.php @@ -13,6 +13,8 @@ namespace OCA\News\Fetcher; +use FeedIo\Reader\ReadErrorException; + interface IFeedFetcher { @@ -28,7 +30,7 @@ interface IFeedFetcher * * @return array an array containing the new feed and its items, first * element being the Feed and second element being an array of Items - * @throws FetcherException if the fetcher encounters a problem + * @throws ReadErrorException if the Feed-IO fetcher encounters a problem */ public function fetch(string $url, bool $favicon, $lastModified, $user, $password): array; -- cgit v1.2.3