Include SQL error code in TapException message and log messages