Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap some C API functions with exception handlers. #2650

Merged
merged 1 commit into from Mar 3, 2022

Conversation

eric-hughes-tiledb
Copy link
Contributor

Wrap some C API functions with exception handlers. The functions are those in the section "ENUMS TO/FROM STR".


TYPE: IMPROVEMENT
DESC: Wrap some C API functions with exception handlers.

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #11442: All c-api functions should use try/catch function body.

@eric-hughes-tiledb
Copy link
Contributor Author

Supersedes #2603, which passed over into git-hell by mistake.

@eric-hughes-tiledb
Copy link
Contributor Author

Merged with dev for GCS fix, the only test that was failing.

Copy link
Member

@ihnorton ihnorton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two minor nits, otherwise this LGTM. I've also run all TileDB-Py tests against this, successfully.

tiledb/sm/c_api/api_exception_safety.h Outdated Show resolved Hide resolved
tiledb/sm/c_api/api_exception_safety.h Outdated Show resolved Hide resolved
@eric-hughes-tiledb eric-hughes-tiledb force-pushed the eh/sc-11442/all-c-api-functions-should-use-try-catch branch from d23be16 to 360e617 Compare March 2, 2022 21:50
…those in the section "ENUMS TO/FROM STR".

- Changed namespace for defining API implementation functions before wrapping.
- Change Status::Error to Status_Error
- Add section documentation in tiledb.cc
@ihnorton ihnorton force-pushed the eh/sc-11442/all-c-api-functions-should-use-try-catch branch from ece2cec to 4505fe5 Compare March 3, 2022 16:04
@ihnorton ihnorton merged commit e307678 into dev Mar 3, 2022
@ihnorton ihnorton deleted the eh/sc-11442/all-c-api-functions-should-use-try-catch branch March 3, 2022 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants