try {
$this->DBconnect = new \PDO($dsn, $this->user, $this->password, $param);
}
catch( PDOException $Exception ) {
echo $Exception->getMessage();
echo $Exception->getCode();
if(!empty($Exception->getCode())){
echo 'Ошибка... '; die();
}
}