Changeset 2606 in Sophya for trunk/SophyaPI/PIext/piacmd.cc


Ignore:
Timestamp:
Sep 7, 2004, 9:10:18 AM (21 years ago)
Author:
ansari
Message:

Ajout bloc try/catch ds piacmd.cc (thread execution commandes) et ds pistdimgapp.cc (methode process, thread boucle d'evts) - Reza 07/09/2004

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/piacmd.cc

    r2536 r2606  
    228228    fg_threxe = true;
    229229    mutx_inps.unlock();
    230     Interpret(line);
     230    try {
     231      Interpret(line);
     232    }
     233    catch (PThrowable& pex) {  // Catching SOPHYA exceptions
     234      cerr << "PIACmd::run() SOPHYA exception in call to Interpret(" << line << ")\n"
     235           << (string)typeid(pex).name() << " Msg= " << pex.Msg() << endl;
     236    }
     237    catch (std::exception& sex) {
     238      cerr << "PIACmd::run() std::exception in call to Interpret(" << line << ")\n"
     239           << (string)typeid(sex).name() << " Msg= " << sex.what() << endl;
     240    }
     241    catch (...) {
     242      cerr << "PIACmd::run() unknown exception (...) in call to Interpret("
     243           << line << ")" << endl;
     244    }
    231245  }
    232246}
Note: See TracChangeset for help on using the changeset viewer.