[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kuml-devel
Subject:    Re: Exceptions
From:       Jake Fear <fear () dtai ! com>
Date:       1999-12-30 18:31:47
[Download RAW message or body]

Yes, that is mainly useful for debugging.  However, if we do release a
buggy piece of software that catch may allow the user a chance to save
their work and restart before sending us some flame mail ;-)

p_george wrote:
> 
> Jake Fear wrote:
> 
> > > I even added a
> > >
> > >   catch (...) {
> > >     cerr << "Found an unknown exception" << endl;
> > >   }
> > >
> > > in main to get all exceptions, but nothing is seen here. The program
> > > calls terminate() as if the exception was not seen by the main function.
> > > Maybe the behavior is particular to Qt library ? Or do I misunderstand
> > > something ?
> >
> > This is possible, there may be a generic handler in the main event loop
> > that is terminating the program.
> 
> This is what gdb output makes me believe. If so, we have to be very
> careful to encapsulate every call to functions throwing exceptions in a
> try block. That is not a real problem, because catching an exception in
> main() is only useful for debugging, or what ?

-- 
|-------------------------------------------------------------------
| Jake Fear
| DTAI, Incorporated - http://www.dtai.com
| mailto:fear@dtai.com
| Office:(619)542-1700 x227   -   Fax:(619)542-8675
|-------------------------------------------------------------------
    carpe diem

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic