]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - application/plugin/exception/PluginInvalidRouteException.php
Plugin system: allow plugins to provide custom routes
[github/shaarli/Shaarli.git] / application / plugin / exception / PluginInvalidRouteException.php
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Shaarli\Plugin\Exception;
6
7 use Exception;
8
9 /**
10 * Class PluginFileNotFoundException
11 *
12 * Raise when plugin files can't be found.
13 */
14 class 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 }