Changing exception type