diff options
Diffstat (limited to 'lib/Controller/Exceptions')
-rw-r--r-- | lib/Controller/Exceptions/NotLoggedInException.php | 14 |
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); + } +} |