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…
Reference in New Issue