changeset 14:55bb3689093f

Add chapter about error codes
author David Demelier <markand@malikania.fr>
date Fri, 08 Sep 2017 11:26:27 +0200
parents 4d6bf8b3446d
children 90a1769a651a
files STYLE_CPP.md
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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