From 05b7ed79945a35f752be9152c60792d67db4be6c Mon Sep 17 00:00:00 2001 From: Paul Tirk Date: Mon, 8 Feb 2021 17:31:19 +0100 Subject: remove unused service exceptions & allow equally named folders Signed-off-by: Paul Tirk --- lib/Controller/FolderApiV2Controller.php | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/Controller') diff --git a/lib/Controller/FolderApiV2Controller.php b/lib/Controller/FolderApiV2Controller.php index b4ba8fcda..6f2eb13da 100644 --- a/lib/Controller/FolderApiV2Controller.php +++ b/lib/Controller/FolderApiV2Controller.php @@ -18,8 +18,6 @@ use \OCP\AppFramework\Http; use \OCA\News\Service\FolderServiceV2; use \OCA\News\Service\ItemServiceV2; use \OCA\News\Service\Exceptions\ServiceNotFoundException; -use \OCA\News\Service\Exceptions\ServiceConflictException; -use \OCA\News\Service\Exceptions\ServiceValidationException; class FolderApiV2Controller extends ApiController { @@ -79,10 +77,6 @@ class FolderApiV2Controller extends ApiController $response = null; try { $response = $this->folderService->rename($this->getUserId(), $folderId, $name); - } catch (ServiceValidationException $ex) { - return $this->errorResponseV2($ex, Http::STATUS_UNPROCESSABLE_ENTITY); - } catch (ServiceConflictException $ex) { - return $this->errorResponseV2($ex, Http::STATUS_CONFLICT); } catch (ServiceNotFoundException $ex) { return $this->errorResponseV2($ex, Http::STATUS_NOT_FOUND); } -- cgit v1.2.3