aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/plugin/exception/PluginFileNotFoundException.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2018-12-04 00:26:50 +0100
committerVirtualTam <virtualtam@flibidi.net>2019-01-12 23:11:19 +0100
commite1850388348d4bfdf463a5aa341bc470da79cf32 (patch)
treea97cfd137b545e7b3ada43c4b5bfe143bd494948 /application/plugin/exception/PluginFileNotFoundException.php
parent349b0144011e25f2b1a727b1d28d49d55b3b2ebb (diff)
downloadShaarli-e1850388348d4bfdf463a5aa341bc470da79cf32.tar.gz
Shaarli-e1850388348d4bfdf463a5aa341bc470da79cf32.tar.zst
Shaarli-e1850388348d4bfdf463a5aa341bc470da79cf32.zip
namespacing: \Shaarli\Plugin\PluginManager
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'application/plugin/exception/PluginFileNotFoundException.php')
-rw-r--r--application/plugin/exception/PluginFileNotFoundException.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/application/plugin/exception/PluginFileNotFoundException.php b/application/plugin/exception/PluginFileNotFoundException.php
new file mode 100644
index 00000000..e5386f02
--- /dev/null
+++ b/application/plugin/exception/PluginFileNotFoundException.php
@@ -0,0 +1,23 @@
1<?php
2namespace Shaarli\Plugin\Exception;
3
4use Exception;
5
6/**
7 * Class PluginFileNotFoundException
8 *
9 * Raise when plugin files can't be found.
10 */
11class 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}