1 2 3 4 5 6 7 8 9 10 11 12 13 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); } }