[ROOT] Error and Exceptions

From: Thomas Bretz (tbretz@astro.uni-wuerzburg.de)
Date: Tue Sep 30 2003 - 10:38:32 MEST


Dear rooters,

might it be possible to implement a feature such, that if I get a 
message like this
Error in <TArrayC::operator[]>: index 577 out of bounds (size: 577,
this: 0xbffff220)
I can switch on raising an exception so that I can identify the position 
in the code by a debugger?

I think of something like
    if (gDebugLevel>3) // for the Error messages
       "Raise an exception"

    if (gDebugLevel>2) // for the Warning messages
       "Raise an exception"

...

I think this could simplify debugging a lot.

Best regards,
Thomas.



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET