summaryrefslogtreecommitdiffstats
path: root/lib/Controller/Exceptions/NotLoggedInException.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller/Exceptions/NotLoggedInException.php')
-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);
+ }
+}