making the object that can not be committed accessable for rubys TransactionError