aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_reminders/lib/Controller/ApiController.php
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-07-31 12:10:50 -0700
committerChristopher Ng <chrng8@gmail.com>2023-08-03 15:30:11 -0700
commit7daf11f8f69cc7562bc46285b9eb4952b6f73b8b (patch)
tree80224516574efed48f6bdb3a800c4ac943c0d4bd /apps/files_reminders/lib/Controller/ApiController.php
parent3ade06cd9c1ddcf8a5d0a140d40b7fab0ecfccd3 (diff)
downloadnextcloud-server-7daf11f8f69cc7562bc46285b9eb4952b6f73b8b.tar.gz
nextcloud-server-7daf11f8f69cc7562bc46285b9eb4952b6f73b8b.zip
fix: remove throwable handling
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files_reminders/lib/Controller/ApiController.php')
-rw-r--r--apps/files_reminders/lib/Controller/ApiController.php10
1 files changed, 0 insertions, 10 deletions
diff --git a/apps/files_reminders/lib/Controller/ApiController.php b/apps/files_reminders/lib/Controller/ApiController.php
index af5cc1b32a7..a0dbd840111 100644
--- a/apps/files_reminders/lib/Controller/ApiController.php
+++ b/apps/files_reminders/lib/Controller/ApiController.php
@@ -39,7 +39,6 @@ use OCP\AppFramework\OCSController;
use OCP\IRequest;
use OCP\IUserSession;
use Psr\Log\LoggerInterface;
-use Throwable;
class ApiController extends OCSController {
public function __construct(
@@ -72,9 +71,6 @@ class ApiController extends OCSController {
'dueDate' => null,
];
return new DataResponse($reminderData, Http::STATUS_OK);
- } catch (Throwable $th) {
- $this->logger->error($th->getMessage(), ['exception' => $th]);
- return new DataResponse([], Http::STATUS_INTERNAL_SERVER_ERROR);
}
}
@@ -104,9 +100,6 @@ class ApiController extends OCSController {
return new DataResponse([], Http::STATUS_OK);
} catch (NodeNotFoundException $e) {
return new DataResponse([], Http::STATUS_NOT_FOUND);
- } catch (Throwable $th) {
- $this->logger->error($th->getMessage(), ['exception' => $th]);
- return new DataResponse([], Http::STATUS_INTERNAL_SERVER_ERROR);
}
}
@@ -124,9 +117,6 @@ class ApiController extends OCSController {
return new DataResponse([], Http::STATUS_OK);
} catch (DoesNotExistException $e) {
return new DataResponse([], Http::STATUS_NOT_FOUND);
- } catch (Throwable $th) {
- $this->logger->error($th->getMessage(), ['exception' => $th]);
- return new DataResponse([], Http::STATUS_INTERNAL_SERVER_ERROR);
}
}
}