From f1fb0f37cb4ca83b16111e0cd9131c9c2b1e9f89 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Tue, 4 Aug 2026 15:18:01 +0200 Subject: [PATCH] chore: Port away from QueryException Signed-off-by: Carl Schwan --- lib/Command/Test.php | 6 +++--- lib/Cron/Index.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Command/Test.php b/lib/Command/Test.php index e83a0bf3..544efb26 100644 --- a/lib/Command/Test.php +++ b/lib/Command/Test.php @@ -29,10 +29,10 @@ use OCA\FullTextSearch\Service\ProviderService; use OCA\FullTextSearch\Service\RunningService; use OCA\FullTextSearch\Service\TestService; -use OCP\AppFramework\QueryException; use OCP\FullTextSearch\IFullTextSearchPlatform; use OCP\FullTextSearch\IFullTextSearchProvider; use OCP\FullTextSearch\Model\IDocumentAccess; +use Psr\Container\ContainerExceptionInterface; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; @@ -118,7 +118,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int /** * @return IFullTextSearchProvider * @throws ProviderIsNotCompatibleException - * @throws QueryException + * @throws ContainerExceptionInterface * @throws ProviderDoesNotExistException * @throws ProviderIsNotUniqueException */ @@ -181,7 +181,7 @@ private function convertBoolToLine(bool $result, bool &$isNewLine): string { * @throws ProviderDoesNotExistException * @throws ProviderIsNotCompatibleException * @throws ProviderIsNotUniqueException - * @throws QueryException + * @throws ContainerExceptionInterface */ private function testCreatingProvider(OutputInterface $output): IFullTextSearchProvider { $this->output($output, 'Creating mocked content provider.'); diff --git a/lib/Cron/Index.php b/lib/Cron/Index.php index 68263f89..c007ad87 100644 --- a/lib/Cron/Index.php +++ b/lib/Cron/Index.php @@ -18,11 +18,11 @@ use OCA\FullTextSearch\Service\PlatformService; use OCA\FullTextSearch\Service\ProviderService; use OCA\FullTextSearch\Service\RunningService; -use OCP\AppFramework\QueryException; use OCP\AppFramework\Services\IAppConfig; use OCP\AppFramework\Utility\ITimeFactory; use OCP\BackgroundJob\IJob; use OCP\BackgroundJob\TimedJob; +use Psr\Container\ContainerExceptionInterface; use Psr\Log\LoggerInterface; use Throwable; @@ -49,7 +49,7 @@ public function __construct( /** * @param mixed $argument * - * @throws QueryException + * @throws ContainerExceptionInterface */ protected function run($argument) { $this->runner = new Runner($this->runningService, 'cronIndex');