Exception will be catched only if taks won't be saved in db