AppNotEnabledException.php 627 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OC\AppFramework\Middleware\Security\Exceptions;
  8. use OCP\AppFramework\Http;
  9. /**
  10. * Class AppNotEnabledException is thrown when a resource for an application is
  11. * requested that is not enabled.
  12. *
  13. * @package OC\AppFramework\Middleware\Security\Exceptions
  14. */
  15. class AppNotEnabledException extends SecurityException {
  16. public function __construct() {
  17. parent::__construct('App is not enabled', Http::STATUS_PRECONDITION_FAILED);
  18. }
  19. }