update exception handlelogic