How do I know if a transaction failed or succeeded. If it failed what was the error ? While searching I found that it can be done "listening to connection.rollingback". How can I listen to this event ? Help with some sample code or useful links will be highly appreciated.