repeated try{} catch{}

From: OKUMURA, Akira <oxon_at_astro.isas.jaxa.jp>
Date: Wed, 9 Jun 2010 19:17:45 -0700


Hello ROOTers,

I cannot use try & catch repeatedly in a for loop. Am I doing wrong? Is there any hack to handle exceptions in ROOT scripts?

The attached example does not finish the for loop of 100 times.

root [0] .L except.C+
Info in <TUnixSystem::ACLiC>: creating shared library /mnt/hgfs/oxon_On_My_Mac/./except_C.so root [1] .x test.C
Warning in <TClass::TClass>: no dictionary for class exception is available Exception MyError: This is error message 0th exception is catched here.
This is error message
Exception MyError: This is error message root [2]

I am using 5.27.02 on Mac and Linux.

Regards,

--
OKUMURA, Akira oxon@{astro.isas.jaxa.jp,stanford.edu}
Institute of Space and Astronautical Science (ISAS/JAXA)
Now at KIPAC/SLAC/Stanford
Varian Physics #306
382 Via Pueblo Mall, MC 406 Stanford, CA94305
TEL 650-736-0971/FAX 650-724-5065
Skype : okumura.akira

  • application/octet-stream attachment: except.C
  • application/octet-stream attachment: test.C
Received on Thu Jun 10 2010 - 04:18:04 CEST

This archive was generated by hypermail 2.2.0 : Fri Jun 11 2010 - 05:50:01 CEST