Add chapter about error codes

Fri, 08 Sep 2017 11:26:27 +0200

author
David Demelier <markand@malikania.fr>
date
Fri, 08 Sep 2017 11:26:27 +0200
changeset 14
55bb3689093f
parent 13
4d6bf8b3446d
child 15
90a1769a651a

Add chapter about error codes

STYLE_CPP.md file | annotate | diff | comparison | revisions
--- a/STYLE_CPP.md	Fri Sep 08 11:25:02 2017 +0200
+++ b/STYLE_CPP.md	Fri Sep 08 11:26:27 2017 +0200
@@ -246,6 +246,11 @@
 you need to carry more data within your exception, you should derive from
 `std::exception`.
 
+### Error code
+
+You should not use error codes to indicate errors, instead use exceptions.
+Error codes are allowed in Boost.Asio though.
+
 ### Free functions
 
 Basic utility functions should be defined in a namespace as a free function not

mercurial