diff options
Diffstat (limited to 'lib/public/Common/Exception/NotFoundException.php')
-rw-r--r-- | lib/public/Common/Exception/NotFoundException.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/public/Common/Exception/NotFoundException.php b/lib/public/Common/Exception/NotFoundException.php new file mode 100644 index 00000000000..d4922ae8734 --- /dev/null +++ b/lib/public/Common/Exception/NotFoundException.php @@ -0,0 +1,25 @@ +<?php + +declare(strict_types=1); + +/** + * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-only + */ +namespace OCP\Common\Exception; + +/** + * This is thrown whenever something was expected to exist but doesn't + * + * @since 27.1.0 + */ +class NotFoundException extends \Exception { + /** + * Constructor + * @param string $msg the error message + * @since 27.1.0 + */ + public function __construct(string $msg) { + parent::__construct($msg); + } +} |