From kde-devel Tue Aug 12 13:42:26 2014 From: Rodrigo Bonifacio Date: Tue, 12 Aug 2014 13:42:26 +0000 To: kde-devel Subject: Re: code convention Message-Id: X-MARC-Message: https://marc.info/?l=kde-devel&m=140785098612678 Dear kevin, I am conducting a survey about the use of exception handling constructs in C++. I would really appreciate if you could contribute to this research by answering a few questions on the subject. The survey is available on-line: https://pt.surveymonkey.com/s/exceptionHandling All the best, Rodrigo. 2014-06-29 8:47 GMT-03:00 Kevin Krammer : > On Saturday, 2014-06-28, 08:52:53, Rodrigo Bonifacio wrote: >> Dear all, is there any code guideline that recommends developers to avoid >> the use of exception handling mechanisms in KDE applications? > > This is primarily a result of Qt only being partially exception safe: > http://qt-project.org/doc/qt-5/exceptionsafety.html > > It is probably not documented separately again on KDE's side. > > You can always use exceptions if you make sure they never leave your code into > Qt's code, e.g. catch them in slots so they don't get into the signal/slot > code. > > Cheers, > Kevin > > -- > Kevin Krammer, KDE developer, xdg-utils developer > KDE user support, developer mentoring > > >>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<