Skip to content

C-API return error handling #6

Closed
@vaind

Description

@vaind

Error codes returned from the C-API (type obx_err) are currently ignored, see e.g. Box::is_empty() calling obx_box_is_empty(). C function obx_box_is_empty() returns error code, which, if not zero, should raise an exception with the error text.

As an example, see functions in helpers.dart and how it's used in dart's Box::isEmpty()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions