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

23 lines
628 B
PHP
Raw Permalink 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 AppNotEnabledException is thrown when a resource for an application is
* requested that is not enabled.
*
* @package OC\AppFramework\Middleware\Security\Exceptions
2013-08-17 05:16:48 -04:00
*/
class AppNotEnabledException extends SecurityException {
public function __construct() {
parent::__construct('App is not enabled', Http::STATUS_PRECONDITION_FAILED);
2013-08-17 05:16:48 -04:00
}
}