updated to conform with new api (less exceptions caught)

Former-commit-id: aa52a7c9429b292061a3dd7afdaf7fb887cdbea9
This commit is contained in:
Jeremy Long
2014-01-11 12:35:07 -05:00
parent 5822dcccec
commit ada2972669

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();
}