Add search\exception\SearchFailed
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 Aug 2021 10:01:25 +0000 (12:01 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 Aug 2021 10:01:25 +0000 (12:01 +0200)
Resolves #4476

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

diff --git a/wcfsetup/install/files/lib/system/search/exception/SearchFailed.class.php b/wcfsetup/install/files/lib/system/search/exception/SearchFailed.class.php
new file mode 100644 (file)
index 0000000..aa59a5c
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+namespace wcf\system\search\exception;
+
+/**
+ * Thrown when a search fails, e.g. because the index is unavailable due to a
+ * network partition.
+ *
+ * @author  Tim Duesterhus
+ * @copyright   2001-2021 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core\System\Search\Exception
+ * @since   5.5
+ */
+final class SearchFailed extends \RuntimeException
+{
+    public function __construct($message, ?\Throwable $previous = null)
+    {
+        parent::__construct($message, 0, $previous);
+    }
+}