< prev index next >

src/com/sun/javatest/InterviewParameters.java

Print this page
rev 145 : 7902225: InterviewParameters, EditJTI warnings: unreachable catch clause
Reviewed-by: jjg

*** 1137,1150 **** if (testSuitePath != null) { try { testSuite = TestSuite.open(testSuitePath); } catch (FileNotFoundException e) { ! throw new Fault(i18n, "ip.cantFindTestSuite", testSuitePath); ! } ! catch (IOException e) { ! throw new Fault(i18n, "ip.cantOpenTestSuite", new Object[] { testSuitePath, e }); } catch (TestSuite.Fault e) { throw new Fault(i18n, "ip.cantOpenTestSuite", new Object[] { testSuitePath, e.getMessage() }); } } --- 1137,1147 ---- if (testSuitePath != null) { try { testSuite = TestSuite.open(testSuitePath); } catch (FileNotFoundException e) { ! throw new Fault(i18n, "ip.cantFindTestSuite", new Object[] { testSuitePath, e }); } catch (TestSuite.Fault e) { throw new Fault(i18n, "ip.cantOpenTestSuite", new Object[] { testSuitePath, e.getMessage() }); } }
*** 1163,1176 **** } else workDir = WorkDirectory.open(workDirPath, testSuite); } catch (FileNotFoundException e) { ! throw new Fault(i18n, "ip.cantFindWorkDir", workDirPath); ! } ! catch (IOException e) { ! throw new Fault(i18n, "ip.cantOpenWorkDir", new Object[] { workDirPath, e }); } catch (WorkDirectory.Fault e) { throw new Fault(i18n, "ip.cantOpenWorkDir", new Object[] { workDirPath, e.getMessage() }); } } --- 1160,1170 ---- } else workDir = WorkDirectory.open(workDirPath, testSuite); } catch (FileNotFoundException e) { ! throw new Fault(i18n, "ip.cantFindWorkDir", new Object[] { workDirPath, e }); } catch (WorkDirectory.Fault e) { throw new Fault(i18n, "ip.cantOpenWorkDir", new Object[] { workDirPath, e.getMessage() }); } }
< prev index next >