added error handling

This commit is contained in:
tracer 2022-10-25 15:50:57 +02:00
parent ec022d09e4
commit 3bf0c2b44f
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ class DatabaseConnection
username: $dbUser,
password: $dbPassword
);
$this->dbConnection->setAttribute(attribute: PDO::ATTR_ERRMODE, value: PDO::ERRMODE_EXCEPTION);
}
public function getConnection(): PDO