aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Notification/UnknownNotificationException.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-04-10 16:44:40 +0200
committerJoas Schilling <coding@schilljs.com>2024-04-12 10:30:37 +0200
commitc8e4a29dfa5665a99077b8eeed645786a946f375 (patch)
tree3d71bfae7629c824adf0d1b93ff5592c794ab65a /lib/public/Notification/UnknownNotificationException.php
parent2c6ecef90f3f3a56192dbc8c41905a81ca3b3501 (diff)
downloadnextcloud-server-c8e4a29dfa5665a99077b8eeed645786a946f375.tar.gz
nextcloud-server-c8e4a29dfa5665a99077b8eeed645786a946f375.zip
fix(notifications): Add a dedicated exception when the notification is unknown to the notifier
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Notification/UnknownNotificationException.php')
-rw-r--r--lib/public/Notification/UnknownNotificationException.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/public/Notification/UnknownNotificationException.php b/lib/public/Notification/UnknownNotificationException.php
new file mode 100644
index 00000000000..bfeeb6a14c5
--- /dev/null
+++ b/lib/public/Notification/UnknownNotificationException.php
@@ -0,0 +1,33 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * @copyright Copyright (c) 2024 Joas Schilling <coding@schilljs.com>
+ *
+ * @author Joas Schilling <coding@schilljs.com>
+ *
+ * @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 OCP\Notification;
+
+/**
+ * @since 30.0.0
+ */
+class UnknownNotificationException extends \InvalidArgumentException {
+}