From kfm-devel Wed Jan 29 20:38:59 2014 From: Thiago Macieira Date: Wed, 29 Jan 2014 20:38:59 +0000 To: kfm-devel Subject: Re: Exception handling Message-Id: <1875471.o8bh2VTTSo () tjmaciei-mobl2> X-MARC-Message: https://marc.info/?l=kfm-devel&m=139102795813240 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart1553257.BaqDXg39Eb" --nextPart1553257.BaqDXg39Eb Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 --nextPart1553257.BaqDXg39Eb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iD8DBQBS6WbjM/XwBW70U1gRAmuRAJ45jiIqEY2XWjL+xHq4GfB4qQEwpgCfWySE ky60BxSCDFmJPCsvdUFUhoI= =GTqH -----END PGP SIGNATURE----- --nextPart1553257.BaqDXg39Eb--