public function __construct($message, PDO $pdo)
 {
     $infos = array();
     foreach ($pdo->errorInfo() as $key => $info) {
         $infos[] = $key . ': ' . $info;
     }
     parent::__construct($message . '. (ERRNO ' . $pdo->errorCode() . ') ' . implode('<br />', $infos));
 }
 public function __construct($message)
 {
     parent::__construct($message . '. (ERRNO ' . mysqli_connect_errno() . ') ' . mysqli_connect_error());
 }