コード例 #1
0
 ExitCode
 AppState::abort (lumiera::Error& problem)
 {
   
   ERROR (common, "Aborting Lumiera after unhandled error: %s", cStr(problem.what()));
   
   log_and_clear_unexpected_errorstate();
   
   try
     {
       if (subsystems_)
         {
           subsystems_->triggerEmergency(true);
           subsystems_->shutdownAll();
         }
       return maybeWait ();
     }
   catch (...)
     {
       return abort();
     }
 }
コード例 #2
0
 /** @note we just grab and retain the error message.
  *  @todo rather keep the exception object around. */
 ExecResult::ExecResult (lumiera::Error const& problem)
   : log_(problem.what())
 { }
コード例 #3
0
 /** failed result, with reason given.*/
 Result (lumiera::Error const& reason)
  : failureLog_(reason.what())
  { }