throw exception when commit exception happened