C API: document error handling #11017
Labels
c api
Nix as a C library with a stable interface
documentation
regression
Something doesn't work anymore
The documentation on the C API should also include error handling because there are too many ways to imagine how it works. If a procedure returns
nix_err
I don't know if that means without a context it will just throw an exception, and if a context is set I don't know if the context will carry the same error as the one returned.Perhaps it would be useful to handler errors at a context using a callback? This would allow bindings to throw errors as their own native exceptions.
The text was updated successfully, but these errors were encountered: