Add ClassNotFound exception
authorMarcel Werk <burntime@woltlab.com>
Tue, 13 Feb 2024 17:11:01 +0000 (18:11 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 13 Feb 2024 17:11:01 +0000 (18:11 +0100)
Closes #4671

wcfsetup/install/files/lib/system/exception/ClassNotFoundException.class.php [new file with mode: 0644]

diff --git a/wcfsetup/install/files/lib/system/exception/ClassNotFoundException.class.php b/wcfsetup/install/files/lib/system/exception/ClassNotFoundException.class.php
new file mode 100644 (file)
index 0000000..0381aa8
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+
+namespace wcf\system\exception;
+
+/**
+ * Exception implementation for cases in which a class could not be found.
+ *
+ * @author      Marcel Werk
+ * @copyright   2001-2024 WoltLab GmbH
+ * @license     GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @since       6.1
+ */
+final class ClassNotFoundException extends \LogicException
+{
+    public function __construct(string $className)
+    {
+        parent::__construct("Unable to find class '{$className}'.");
+    }
+}