aboutsummaryrefslogtreecommitdiff
path: root/lib/exceptions/PluginAlreadyLoadingException.php
blob: 76fbce08797009d1838d5ca2286a88522630c6a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

/**
 * This exception is thrown, if a plugin is already loading.
 *
 * There should always only be one instance of a plugin class.
 */
class PluginAlreadyLoadingException extends Exception
{
    public function __construct(string $pluginClassName)
    {
       parent::__construct(
            sprintf(
                _("Plugin '%s' wird bereits geladen."),
                $pluginClassName
            )
        );
    }
}