Correct bad exception generation