Correction: moved throw outside of inTransaction block.