updated to conform with new api (less exceptions caught)

Former-commit-id: ad29d60598be7dd0c44e332a65d68756cadbe3e2
This commit is contained in:
Jeremy Long
2014-01-11 12:35:07 -05:00
parent 08603ad905
commit e8682ac058

View File

@@ -20,8 +20,6 @@ package org.owasp.dependencycheck;
import java.util.EnumMap;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
@@ -455,14 +453,8 @@ public class Engine {
cpe.open(cve);
} catch (IndexException ex) {
throw new NoDataException(ex.getMessage(), ex);
} catch (IOException ex) {
throw new NoDataException(ex.getMessage(), ex);
} catch (SQLException ex) {
throw new NoDataException(ex.getMessage(), ex);
} catch (DatabaseException ex) {
throw new NoDataException(ex.getMessage(), ex);
} catch (ClassNotFoundException ex) {
throw new NoDataException(ex.getMessage(), ex);
} finally {
cve.close();
}