[Qt5-feedback] new Qt5 - great! - but: What about exceptions?

Keith Gardner kgardner at zebraimaging.com
Sat May 14 01:30:38 CEST 2011


Sorry.  Boost exception supports the N2179-style(http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2179.html) of exception objects.  They also have a wrapper function that is used when calling throw to also include type information about the exception.  Once they make a copy of the exception, they then pass it around inside of a shared pointer.

My thoughts are that if a QThread catches an exception that was thrown in the run() method, it could emit a signal that it caught an error with the exception_ptr object as an argument.

-----Original Message-----
From: qt5-feedback-bounces+kgardner=zebraimaging.com at qt.nokia.com [mailto:qt5-feedback-bounces+kgardner=zebraimaging.com at qt.nokia.com] On Behalf Of Thiago Macieira
Sent: Friday, May 13, 2011 5:10 PM
To: qt5-feedback at qt.nokia.com
Subject: Re: [Qt5-feedback] new Qt5 - great! - but: What about exceptions?

On Friday, 13 de May de 2011 16:44:34 Keith Gardner wrote:
> Boost exception has the ability to copy exceptions that have been 
> thrown and rethrow them in a different thread.

Right, but could you point to the documentation or design information on how this is done? Or can you describe it yourself?

We can't go look at Boost's code then implement the same thing ourselves -- copyright violation. At most we could integrate with it: can you point to the docs on how to use them?

But if we could integrate with it, why can't you do the same in your application?

--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358


More information about the Qt5-feedback mailing list