diff options
Diffstat (limited to 'lib/Fetcher')
-rw-r--r-- | lib/Fetcher/Fetcher.php | 4 | ||||
-rw-r--r-- | lib/Fetcher/IFeedFetcher.php | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/Fetcher/Fetcher.php b/lib/Fetcher/Fetcher.php index 23f5b57f7..425004680 100644 --- a/lib/Fetcher/Fetcher.php +++ b/lib/Fetcher/Fetcher.php @@ -13,6 +13,8 @@ namespace OCA\News\Fetcher; +use FeedIo\Reader\ReadErrorException; + class Fetcher { @@ -48,7 +50,7 @@ class Fetcher * @param string $user if given, basic auth is set for this feed * @param string $password if given, basic auth is set for this feed. Ignored if user is empty * - * @throws FetcherException if FeedIO fails + * @throws ReadErrorException if FeedIO fails * @return array an array containing the new feed and its items, first * element being the Feed and second element being an array of Items */ 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; |