Skip to content

C API: document error handling #11017

Open
@ehmry

Description

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.

Metadata

Assignees

No one assigned

    Labels

    c apiNix as a C library with a stable interfacedocumentationregressionSomething doesn't work anymore

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions