This ticket refers to the direct API_RET_END and TXN_API_END section within the technical design. After milestone 1, a basic API and structure should be created on the session structure. The work involved in this ticket is to create a capture the last error using the session structure when API_RET_END and TXN_API_END is called. The macros are used at the end of every API call. In the case that prior session API succeeds, the API should return back the default success message and error code, as referenced:
(0, WT_NONE, “last API call was successful”)
In the case that the prior session API call was an error, we should only capture the last error and return it when the error API is called. This implementation must not collide with WT_RET_MSG and the new macro created WT_RET_VERBOSE_MSG/WT_ERR_VERBOSE_MSG.
Definition of Done
The last return code is captured successfully. The behaviour should match as referenced in the technical design. Python and units tests validate that this works in both scenarios.