From 282bdc0fd70b9151c2a3cfb07fc0d65ccfe377d8 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 6 Jul 2021 20:36:22 -0500 Subject: [PATCH] [nostalgia] Add paragraph about choosing between exceptions and ox::Error --- developer-handbook.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/developer-handbook.md b/developer-handbook.md index 4119030f..ebe6e4db 100644 --- a/developer-handbook.md +++ b/developer-handbook.md @@ -154,6 +154,10 @@ In addition to ```ox::Error``` there is also the template ```ox::Result```. error information, which allows the returning of a value and an error without resorting to output parameters. +If a function returns an ```ox::Error``` or ```ox::Result``` it should be +declared as ```noexcept``` and all exceptions should be translated to an +```ox::Error```. + ```ox::Result``` can be used as follows: ```cpp