Exception handling

Thiago Macieira thiago at kde.org
Wed Jan 29 20:38:59 GMT 2014


On quarta-feira, 29 de janeiro de 2014 08:03:19, Rodrigo wrote:
> Dear all, analysing the source code of konqueror, I could figure out that
> the exception handling constructs of c++ is not frequently used in the
> project. Is there any recommendation for not using try-catch statements for
> handling errors in the project?

Yes, don't catch exceptions.

We don't use any types that throw exceptions and std::bad_alloc is never 
thrown on a modern system, so there's nothing to be caught.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20140129/b1fc65ab/attachment.sig>


More information about the kfm-devel mailing list