aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/AutoloadNotAllowedException.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/AutoloadNotAllowedException.php')
-rw-r--r--lib/public/AutoloadNotAllowedException.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/public/AutoloadNotAllowedException.php b/lib/public/AutoloadNotAllowedException.php
new file mode 100644
index 00000000000..a296ea3356a
--- /dev/null
+++ b/lib/public/AutoloadNotAllowedException.php
@@ -0,0 +1,23 @@
+<?php
+
+declare(strict_types=1);
+/**
+ * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
+namespace OCP;
+
+/**
+ * Exception for when a not allowed path is attempted to be autoloaded
+ * @since 8.2.0
+ */
+class AutoloadNotAllowedException extends \DomainException {
+ /**
+ * @param string $path
+ * @since 8.2.0
+ */
+ public function __construct($path) {
+ parent::__construct('Autoload path not allowed: ' . $path);
+ }
+}