change the catch block sequence so that the expected exception do not escape