aboutsummaryrefslogblamecommitdiffhomepage
path: root/application/plugin/exception/PluginFileNotFoundException.php
blob: e5386f02605989de373e21e4b4295c3785ac058a (plain) (tree)






















                                                                                 
<?php
namespace Shaarli\Plugin\Exception;

use Exception;

/**
 * Class PluginFileNotFoundException
 *
 * Raise when plugin files can't be found.
 */
class PluginFileNotFoundException extends Exception
{
    /**
     * Construct exception with plugin name.
     * Generate message.
     *
     * @param string $pluginName name of the plugin not found
     */
    public function __construct($pluginName)
    {
        $this->message = sprintf(t('Plugin "%s" files not found.'), $pluginName);
    }
}