NotFoundException.php 497 B

12345678910111213141516171819202122232425
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCP\Common\Exception;
  8. /**
  9. * This is thrown whenever something was expected to exist but doesn't
  10. *
  11. * @since 27.1.0
  12. */
  13. class NotFoundException extends \Exception {
  14. /**
  15. * Constructor
  16. * @param string $msg the error message
  17. * @since 27.1.0
  18. */
  19. public function __construct(string $msg) {
  20. parent::__construct($msg);
  21. }
  22. }