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