generate exceptions on the lines that they occur for easier debugging