/**
  * Sends the exception data to the logger class.
  *
  * @param object $oExcept \Exception object.
  * @return void
  */
 public static function launch(\Exception $oExcept)
 {
     if (Debug::is()) {
         Page::exception($oExcept);
     } else {
         (new LoggerExcept())->except($oExcept);
         // Set Exception in Error Log
         Page::error500();
     }
 }
 public function __construct()
 {
     try {
         \PH7\Framework\Mvc\Router\FrontController::getInstance()->_databaseInitialize();
     } catch (\PH7\Framework\Mvc\Model\Engine\Exception $oE) {
         // If we are not in development mode, we display an error message to avoid showing information on the database.
         if (!Debug::is()) {
             exit('Could not connect to database server!');
         }
     }
     parent::__construct();
 }