https://gpttutorpro.com/how-to-handle-errors-and-exceptions-in-transactions/
How to Handle Errors and Exceptions in Transactions