mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Replace Exception with Icinga\Exception\ProgrammingError in Icinga\Application\Loader
refs #6542
This commit is contained in:
parent
572c7858c8
commit
7ab984106a
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Icinga\Application;
|
||||
|
||||
use Exception;
|
||||
use Icinga\Exception\ProgrammingError;
|
||||
|
||||
class Loader
|
||||
{
|
||||
@ -39,7 +39,7 @@ class Loader
|
||||
public function registerNamespace($namespace, $directory)
|
||||
{
|
||||
if (!is_dir($directory)) {
|
||||
throw new Exception(sprintf(
|
||||
throw new ProgrammingError(sprintf(
|
||||
'Namespace directory "%s" for "%s" does not exist',
|
||||
$namespace,
|
||||
$directory
|
||||
|
Loading…
x
Reference in New Issue
Block a user