diff options
author | Paul Tirk <paultirk@paultirk.com> | 2021-02-08 17:31:19 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 10:23:11 +0200 |
commit | 05b7ed79945a35f752be9152c60792d67db4be6c (patch) | |
tree | 651820adae955a49edc9e6c1ec105354f10c7ea1 /lib/Controller | |
parent | 80351429730e368a82eab450769c93ab5dd83c0d (diff) |
remove unused service exceptions & allow equally named folders
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/FolderApiV2Controller.php | 6 |
1 files changed, 0 insertions, 6 deletions
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); } |