Skip to content

Commit

Permalink
Update JsonDriver.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Oct 30, 2023
1 parent 3d19c7d commit 4933b2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webfiori/framework/config/JsonDriver.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
namespace webfiori\framework\config;

use Exception;
use webfiori\database\ConnectionInfo;
use webfiori\email\SMTPAccount;
use webfiori\file\File;
use webfiori\framework\exceptions\InitializationException;
use webfiori\http\Uri;
use webfiori\json\Json;

Expand Down Expand Up @@ -264,7 +264,7 @@ public function getDBConnections(): array {
private function getProp(Json $j, $name, string $connName) {
$val = $j->get($name);
if ($val === null) {
throw new Exception('The property "'.$name.'" of the connection "'.$connName.'" is missing.');
throw new InitializationException('The property "'.$name.'" of the connection "'.$connName.'" is missing.');
}
return $val;
}
Expand Down

0 comments on commit 4933b2a

Please sign in to comment.