]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/plugin/exception/PluginInvalidRouteException.php
Plugin system: allow plugins to provide custom routes
[github/shaarli/Shaarli.git] / application / plugin / exception / PluginInvalidRouteException.php
diff --git a/application/plugin/exception/PluginInvalidRouteException.php b/application/plugin/exception/PluginInvalidRouteException.php
new file mode 100644 (file)
index 0000000..6ba9bc4
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Shaarli\Plugin\Exception;
+
+use Exception;
+
+/**
+ * Class PluginFileNotFoundException
+ *
+ * Raise when plugin files can't be found.
+ */
+class PluginInvalidRouteException extends Exception
+{
+    /**
+     * Construct exception with plugin name.
+     * Generate message.
+     *
+     * @param string $pluginName name of the plugin not found
+     */
+    public function __construct()
+    {
+        $this->message = 'trying to register invalid route.';
+    }
+}