Return error from transactions lambda

Description

Currently, the only way to propagate an error from the transactions lambda and trigger a rollback is to throw an exception. This does not fit with the rest of the Public API. We should make the transactions lambda return a couchbase::error, which when set triggers a rollback in the same way that throwing an exception would.

Refer to "Exceptions Raised by the Application Lambda" in the Transactions Design document for details.

Environment

None

Release Notes Description

None

Activity

Show:
Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Sprint

Story Points

Priority

Instabug

Open Instabug

Sentry

Zendesk Support

Created June 17, 2024 at 9:08 PM
Updated June 19, 2024 at 11:24 AM
Resolved June 19, 2024 at 11:24 AM
Instabug