nextcloud/lib/private/AppFramework/Middleware/Security/Exceptions/NotLoggedInException.php

23 lines
648 B
PHP
Raw Normal View History

2013-08-17 05:16:48 -04:00
<?php
2013-08-17 05:16:48 -04:00
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
2013-08-17 05:16:48 -04:00
*/
namespace OC\AppFramework\Middleware\Security\Exceptions;
use OCP\AppFramework\Http;
2013-08-17 05:16:48 -04:00
/**
* Class NotLoggedInException is thrown when a resource has been requested by a
* guest user that is not accessible to the public.
*
* @package OC\AppFramework\Middleware\Security\Exceptions
2013-08-17 05:16:48 -04:00
*/
class NotLoggedInException extends SecurityException {
public function __construct() {
parent::__construct('Current user is not logged in', Http::STATUS_UNAUTHORIZED);
2013-08-17 05:16:48 -04:00
}
}