mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-23 17:41:28 +01:00
made a broad catch even broader
Former-commit-id: bf8e7083115bce94128112645eac4d0883e58cbf
This commit is contained in:
@@ -299,13 +299,13 @@ public class Engine {
|
|||||||
final String msg = String.format("Initializing %s", a.getName());
|
final String msg = String.format("Initializing %s", a.getName());
|
||||||
Logger.getLogger(Engine.class.getName()).log(Level.FINE, msg);
|
Logger.getLogger(Engine.class.getName()).log(Level.FINE, msg);
|
||||||
a.initialize();
|
a.initialize();
|
||||||
} catch (Exception ex) {
|
} catch (Throwable ex) {
|
||||||
final String msg = String.format("Exception occurred initializing %s.", a.getName());
|
final String msg = String.format("Exception occurred initializing %s.", a.getName());
|
||||||
Logger.getLogger(Engine.class.getName()).log(Level.SEVERE, msg);
|
Logger.getLogger(Engine.class.getName()).log(Level.SEVERE, msg);
|
||||||
Logger.getLogger(Engine.class.getName()).log(Level.FINE, null, ex);
|
Logger.getLogger(Engine.class.getName()).log(Level.FINE, null, ex);
|
||||||
try {
|
try {
|
||||||
a.close();
|
a.close();
|
||||||
} catch (Exception ex1) {
|
} catch (Throwable ex1) {
|
||||||
Logger.getLogger(Engine.class.getName()).log(Level.FINEST, null, ex1);
|
Logger.getLogger(Engine.class.getName()).log(Level.FINEST, null, ex1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -354,7 +354,7 @@ public class Engine {
|
|||||||
Logger.getLogger(Engine.class.getName()).log(Level.FINE, msg);
|
Logger.getLogger(Engine.class.getName()).log(Level.FINE, msg);
|
||||||
try {
|
try {
|
||||||
a.close();
|
a.close();
|
||||||
} catch (Exception ex) {
|
} catch (Throwable ex) {
|
||||||
Logger.getLogger(Engine.class.getName()).log(Level.FINEST, null, ex);
|
Logger.getLogger(Engine.class.getName()).log(Level.FINEST, null, ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user