summaryrefslogtreecommitdiffstats
path: root/lib/Exceptions
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-09-22 14:31:34 +0200
committerJoas Schilling <coding@schilljs.com>2017-09-22 14:32:07 +0200
commit0c3fdb72b33da2b8bf79ae015d8ad5c84d9fbc7f (patch)
tree4335faa5a15f14d3320d4bd4f159a097e2b55fc3 /lib/Exceptions
parent14b9e85dacb53f27a6e83dc1ec74445db37b7b07 (diff)
Add a dedicated exception for participants
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Exceptions')
-rw-r--r--lib/Exceptions/ParticipantNotFoundException.php27
-rw-r--r--lib/Exceptions/RoomNotFoundException.php2
2 files changed, 28 insertions, 1 deletions
diff --git a/lib/Exceptions/ParticipantNotFoundException.php b/lib/Exceptions/ParticipantNotFoundException.php
new file mode 100644
index 000000000..27d9b4771
--- /dev/null
+++ b/lib/Exceptions/ParticipantNotFoundException.php
@@ -0,0 +1,27 @@
+<?php
+/**
+ * @copyright Copyright (c) 2017 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 OCA\Spreed\Exceptions;
+
+class ParticipantNotFoundException extends \OutOfBoundsException {
+
+}
diff --git a/lib/Exceptions/RoomNotFoundException.php b/lib/Exceptions/RoomNotFoundException.php
index 63cf108da..e2a158276 100644
--- a/lib/Exceptions/RoomNotFoundException.php
+++ b/lib/Exceptions/RoomNotFoundException.php
@@ -22,6 +22,6 @@
namespace OCA\Spreed\Exceptions;
-class RoomNotFoundException extends \Exception {
+class RoomNotFoundException extends \OutOfBoundsException {
}