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

Document the users obligation to catch when using manual transactions #2646

Closed
kraenhansen opened this issue Dec 10, 2019 · 0 comments
Closed
Assignees
Labels

Comments

@kraenhansen
Copy link
Member

kraenhansen commented Dec 10, 2019

As mentioned on a comment of a different issue, when using manual transactions the user is obligated to surround any code interfacing with the Realm in a try/catch. The user also has the responsibility to react on errors/exceptions - specifically cancelling the transaction if any call to a method on the Realm throws an exception, as the state of the data cannot be guaranteed at this point.

We should add a notice about this on the online and the "in clode" documentation of the beginTransaction method.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants