aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/plugin/exception/PluginInvalidRouteException.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/plugin/exception/PluginInvalidRouteException.php')
-rw-r--r--application/plugin/exception/PluginInvalidRouteException.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/application/plugin/exception/PluginInvalidRouteException.php b/application/plugin/exception/PluginInvalidRouteException.php
new file mode 100644
index 00000000..6ba9bc43
--- /dev/null
+++ b/application/plugin/exception/PluginInvalidRouteException.php
@@ -0,0 +1,26 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Shaarli\Plugin\Exception;
6
7use Exception;
8
9/**
10 * Class PluginFileNotFoundException
11 *
12 * Raise when plugin files can't be found.
13 */
14class PluginInvalidRouteException extends Exception
15{
16 /**
17 * Construct exception with plugin name.
18 * Generate message.
19 *
20 * @param string $pluginName name of the plugin not found
21 */
22 public function __construct()
23 {
24 $this->message = 'trying to register invalid route.';
25 }
26}