[nostalgia] Add paragraph about choosing between exceptions and ox::Error

This commit is contained in:
Gary Talent 2021-07-06 20:36:22 -05:00
parent 032aadafdf
commit 282bdc0fd7

View File

@ -154,6 +154,10 @@ In addition to ```ox::Error``` there is also the template ```ox::Result<T>```.
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