summaryrefslogtreecommitdiffstats
path: root/lib/Controller/Exceptions
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2020-12-16 22:30:19 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2020-12-17 10:35:23 +0100
commit11f5904dd58cbcb45e0e3e6c466f187e30323155 (patch)
tree17e7cd35948b161a0e567dec94bb9aecbe64d895 /lib/Controller/Exceptions
parent7bebaab86e2676466eb9d104ec1a57cd9634c0b4 (diff)
Fix mapper->find and empty user sessions
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Controller/Exceptions')
-rw-r--r--lib/Controller/Exceptions/NotLoggedInException.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Controller/Exceptions/NotLoggedInException.php b/lib/Controller/Exceptions/NotLoggedInException.php
new file mode 100644
index 000000000..9bdf2475c
--- /dev/null
+++ b/lib/Controller/Exceptions/NotLoggedInException.php
@@ -0,0 +1,14 @@
+<?php
+
+
+namespace OCA\News\Controller\Exceptions;
+
+use Throwable;
+
+class NotLoggedInException extends \Exception
+{
+ public function __construct(?string $message = null)
+ {
+ parent::__construct($message ?? 'Unauthorized: User is not logged in!', 0, null);
+ }
+}