X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDatabase%2FDatabase.php;h=0e1cffb4ac95204ea2ea8d557917e5737a6d6d4a;hb=5350e0852d718494934252328d17a094fd1bc73e;hp=a654cccc5b8df02730e22022e23cb3d8ee804455;hpb=c714595b70de3afbcd0b1e856866ae8983bf6ed1;p=friendica.git diff --git a/src/Database/Database.php b/src/Database/Database.php index a654cccc5b..0e1cffb4ac 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -21,9 +21,9 @@ namespace Friendica\Database; -use Friendica\Core\Config\Cache; +use Friendica\Core\Config\ValueObject\Cache; use Friendica\Core\System; -use Friendica\Network\HTTPException\InternalServerErrorException; +use Friendica\Network\HTTPException\ServiceUnavailableException; use Friendica\Util\DateTimeFormat; use Friendica\Util\Profiler; use mysqli; @@ -49,7 +49,7 @@ class Database protected $connected = false; /** - * @var Cache + * @var \Friendica\Core\Config\ValueObject\Cache */ protected $configCache; /** @@ -520,7 +520,7 @@ class Database $called_from_e = ($called_from['function'] == 'e'); if (!isset($this->connection)) { - throw new InternalServerErrorException('The Connection is empty, although connected is set true.'); + throw new ServiceUnavailableException('The Connection is empty, although connected is set true.'); } switch ($this->driver) {