aboutsummaryrefslogtreecommitdiffstats
path: root/core/Exception
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-07-26 15:21:41 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-07-27 20:12:16 +0200
commitb6dd2ebd3909017b9a5dbe0e145d6c5041a9043c (patch)
tree63a2bdf57168cca766dfadb2d5d1608e2b6ffdf7 /core/Exception
parent1ec98af3e028f5aa8591bda26d5dac96dfd66f43 (diff)
downloadnextcloud-server-b6dd2ebd3909017b9a5dbe0e145d6c5041a9043c.tar.gz
nextcloud-server-b6dd2ebd3909017b9a5dbe0e145d6c5041a9043c.zip
Use proper exception in lostController
There is no need to log the expcetion of most of the stuff here. We should properly log them but an exception is excessive. This moves it to a proper exception which we can catch and then log. The other exceptions will still be fully logged. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/Exception')
-rw-r--r--core/Exception/ResetPasswordException.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/core/Exception/ResetPasswordException.php b/core/Exception/ResetPasswordException.php
new file mode 100644
index 00000000000..cbae1d59816
--- /dev/null
+++ b/core/Exception/ResetPasswordException.php
@@ -0,0 +1,29 @@
+<?php
+declare(strict_types=1);
+/**
+ * @copyright Copyright (c) 2019, Roeland Jago Douma <roeland@famdouma.nl>
+ *
+ * @author Roeland Jago Douma <roeland@famdouma.nl>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+namespace OC\Core\Exception;
+
+class ResetPasswordException extends \Exception {
+
+}