Replace Exception with Icinga\Exception\ProgrammingError in Icinga\Application\Loader

refs #6542
This commit is contained in:
Alexander Klimov 2014-06-27 15:20:56 +02:00
parent 572c7858c8
commit 7ab984106a
1 changed files with 2 additions and 2 deletions

View File

@ -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