aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/plugin/exception/PluginFileNotFoundException.php
blob: 21ac6604f77a644bab417553d2c79d3d60dd77bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?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);
    }
}