Fix GeneralException namespace used in DbDriver

This commit is contained in:
2020-01-10 00:16:20 +03:00
parent bb2d713ab3
commit 89ececaef2

View File

@ -1,4 +1,6 @@
<?php namespace Majestic\Model;
use Majestic\Exception\GeneralException;
/**
* @copyright NetMonsters <team@netmonsters.ru>
* @link http://netmonsters.ru
@ -36,7 +38,7 @@ abstract class DbDriver
$required = array('database', 'username', 'password', 'hostname');
foreach ($required as $option) {
if (!isset($config[$option])) {
throw new \GeneralException('Configuration must have a "' . $option . '".');
throw new GeneralException('Configuration must have a "' . $option . '".');
}
}
}