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;
|
namespace Icinga\Application;
|
||||||
|
|
||||||
use Exception;
|
use Icinga\Exception\ProgrammingError;
|
||||||
|
|
||||||
class Loader
|
class Loader
|
||||||
{
|
{
|
||||||
|
@ -39,7 +39,7 @@ class Loader
|
||||||
public function registerNamespace($namespace, $directory)
|
public function registerNamespace($namespace, $directory)
|
||||||
{
|
{
|
||||||
if (!is_dir($directory)) {
|
if (!is_dir($directory)) {
|
||||||
throw new Exception(sprintf(
|
throw new ProgrammingError(sprintf(
|
||||||
'Namespace directory "%s" for "%s" does not exist',
|
'Namespace directory "%s" for "%s" does not exist',
|
||||||
$namespace,
|
$namespace,
|
||||||
$directory
|
$directory
|
||||||
|
|
Loading…
Reference in New Issue