[ROOT] getting the last error

From: joer00@bellsouth.net
Date: Mon Feb 04 2002 - 15:30:57 MET


Hi Rooters,

I posted this before and got the impression that I just cant check for errors, but Anton Fokin told me it shouls be possible via SetErrorHandler(). But HOW ?? There is no documentaion in the root docs, none in the class index and serach the root page did not return any result.

So all I need is to NOT print errors in the console window (if i set ignore levele to 5000, the default error handler just aborts !) and GET the last occured error to decide what my programm is doing. Something simple like:

SomeClass.SomeMethod("This might set an Error");
if(gError)
{
QMessageBox::warning(this,"test",gErrorMessage);
DoSomething;
}

Joe



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:40 MET