Re: [ROOT] TError

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Wed Jan 14 2004 - 10:43:41 MET


Hi Thomas,

 the comment was outdated, I've now corrected it.

Cheers, Fons.


On Tue, 2004-01-13 at 09:23, Thomas Bretz wrote:
> Hi,
> 
> I found something strange in the dox of ErrorHandler. It says:
> -------------------------------------------------------------------------
> void ErrorHandler(int level, const char *location, const char *fmt, 
> va_list ap)
> {
>     // General error handler function. It calls the user set error handler
>     // unless the error is of type kFatal, in which case the
>     // DefaultErrorHandler() is called which will abort the application.
> -------------------------------------------------------------------------
> 
> but this is not what it does:
> -------------------------------------------------------------------------
>     if (level != kFatal)
>        gErrorHandler(level, level >= gErrorAbortLevel, location, bp);
>     else
>        gErrorHandler(level, kTRUE, location, bp);
> -------------------------------------------------------------------------
> 
> Best regards,
> Thomas.
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://www.rademakers.org/fons/      Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET