]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - application/plugin/exception/PluginFileNotFoundException.php
e5386f02605989de373e21e4b4295c3785ac058a
[github/shaarli/Shaarli.git] / application / plugin / exception / PluginFileNotFoundException.php
1 <?php
2 namespace Shaarli\Plugin\Exception;
3
4 use Exception;
5
6 /**
7 * Class PluginFileNotFoundException
8 *
9 * Raise when plugin files can't be found.
10 */
11 class PluginFileNotFoundException extends Exception
12 {
13 /**
14 * Construct exception with plugin name.
15 * Generate message.
16 *
17 * @param string $pluginName name of the plugin not found
18 */
19 public function __construct($pluginName)
20 {
21 $this->message = sprintf(t('Plugin "%s" files not found.'), $pluginName);
22 }
23 }