2018-12-04 00:26:50 +01:00
|
|
|
<?php
|
2023-05-24 11:35:15 +02:00
|
|
|
|
2018-12-04 00:26:50 +01:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|