Details
-
Bug
-
Resolution: Fixed
-
Major
-
sdk-3.2, sdk-3.3
Description
Committing is automatic: if there is no explicit call to ctx.commit() at the end of the transaction logic callback, and no exception is thrown, it will be committed. Committing is automatic at the end of the code block with the transaction context. If no exception is thrown, it will be committed. If you want to rollback the transaction, simply throw an exception. Transactions may rollback from the transaction logic itself, various failure conditions, or from your application logic by throwing an exception.
The above block statement seems to be repeating , for instance committing is automatic and then in the next line its repeated again but with little more context. Probably it can be made concise?