From 7ab984106a98aa91ce76aa0828cdc69bbad57741 Mon Sep 17 00:00:00 2001 From: Alexander Klimov Date: Fri, 27 Jun 2014 15:20:56 +0200 Subject: [PATCH] Replace Exception with Icinga\Exception\ProgrammingError in Icinga\Application\Loader refs #6542 --- library/Icinga/Application/Loader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Icinga/Application/Loader.php b/library/Icinga/Application/Loader.php index 4bc93f06a..bc31cfbb1 100644 --- a/library/Icinga/Application/Loader.php +++ b/library/Icinga/Application/Loader.php @@ -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