added more clarification for std::error_code

This commit is contained in:
klemens-morgenstern 2016-10-28 19:25:34 +02:00
parent d1f2685003
commit 58023d7591

View File

@ -133,7 +133,7 @@ Until now, we have assumed that everything works out, but it is not impossible,
that "g++" is not present. That will cause the launch of the process to fail.
The default behaviour of all functions is to throw an
[@http://en.cppreference.com/w/cpp/error/system_error std::system_error] on failure.
As with all other functions, passing an [@http://en.cppreference.com/w/cpp/error/error_code std::error_code]
As with many other functions in this library, passing an [@http://en.cppreference.com/w/cpp/error/error_code std::error_code]
will change the behaviour, so that instead of throwing an exception, the error will be a assigned to the error code.
```