Ghidra is a software reverse engineering (SRE) framework
GP-0 corrected DBContentHandler exception encapsulation
ghidra1038070988164
diff --git a/Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/database/DBTraceContentHandler.java b/Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/database/DBTraceContentHandler.javaindex e56ef664c7..13cb0f7b31 100644--- a/Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/database/DBTraceContentHandler.java+++ b/Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/database/DBTraceContentHandler.java@@ -86,7 +86,7 @@ public class DBTraceContentHandler extends DBWithUserDataContentHandler<DBTrace>if (msg == null) {msg = t.toString();}- throw new IOException("Open failed: " + msg);+ throw new IOException("Open failed: " + msg, t);}finally {if (!success) {@@ -136,7 +136,7 @@ public class DBTraceContentHandler extends DBWithUserDataContentHandler<DBTrace>if (msg == null) {msg = t.toString();}- throw new IOException("Open failed: " + msg);+ throw new IOException("Open failed: " + msg, t);}finally {if (!success) {@@ -191,7 +191,7 @@ public class DBTraceContentHandler extends DBWithUserDataContentHandler<DBTrace>if (msg == null) {msg = t.toString();}- throw new IOException("Open failed: " + msg);+ throw new IOException("Open failed: " + msg, t);}finally {if (!success) {@@ -288,7 +288,7 @@ public class DBTraceContentHandler extends DBWithUserDataContentHandler<DBTrace>if (msg == null) {msg = t.toString();}- throw new IOException("Open failed: " + msg);+ throw new IOException("Open failed: " + msg, t);}finally {if (trace != null) {diff --git a/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/impl/VTSessionContentHandler.java b/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/impl/VTSessionContentHandler.javaindex 4c8abe14f0..2698c4ed35 100644--- a/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/impl/VTSessionContentHandler.java+++ b/Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/api/impl/VTSessionContentHandler.java@@ -114,7 +114,7 @@ public class VTSessionContentHandler extends DBContentHandler<VTSessionDB> {if (msg == null) {msg = t.toString();}- throw new IOException("Open failed: " + msg);+ throw new IOException("Open failed: " + msg, t);}}@@ -184,7 +184,7 @@ public class VTSessionContentHandler extends DBContentHandler<VTSessionDB> {if (msg == null) {msg = t.toString();}- throw new IOException("Open failed: " + msg);+ throw new IOException("Open failed: " + msg, t);}}diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/DataTypeArchiveContentHandler.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/DataTypeArchiveContentHandler.javaindex f5d328b6c8..907f8f83f7 100644--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/DataTypeArchiveContentHandler.java+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/DataTypeArchiveContentHandler.java@@ -102,7 +102,7 @@ public class DataTypeArchiveContentHandler extends DBContentHandler<DataTypeArchif (msg == null) {msg = t.toString();}- throw new IOException("Open failed: " + msg);+ throw new IOException("Open failed: " + msg, t);}finally {if (!success) {@@ -157,7 +157,7 @@ public class DataTypeArchiveContentHandler extends DBContentHandler<DataTypeArchif (msg == null) {msg = t.toString();}- throw new IOException("Open failed: " + msg);+ throw new IOException("Open failed: " + msg, t);}finally {if (!success) {@@ -221,7 +221,7 @@ public class DataTypeArchiveContentHandler extends DBContentHandler<DataTypeArchif (msg == null) {msg = t.toString();}- throw new IOException("Open failed: " + msg);+ throw new IOException("Open failed: " + msg, t);}finally {if (!success) {@@ -314,7 +314,7 @@ public class DataTypeArchiveContentHandler extends DBContentHandler<DataTypeArchif (msg == null) {msg = t.toString();}- throw new IOException("Open failed: " + msg);+ throw new IOException("Open failed: " + msg, t);}finally {if (dataTypeArchive != null) {diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/ProgramContentHandler.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/ProgramContentHandler.javaindex e36878a762..402b6e0cc9 100644--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/ProgramContentHandler.java+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/ProgramContentHandler.java@@ -149,7 +149,7 @@ public class ProgramContentHandler extends DBWithUserDataContentHandler<ProgramDif (msg == null) {msg = t.toString();}- throw new IOException("Open failed: " + msg);+ throw new IOException("Open failed: " + msg, t);}finally {if (!success) {@@ -208,7 +208,7 @@ public class ProgramContentHandler extends DBWithUserDataContentHandler<ProgramDif (msg == null) {msg = t.toString();}- throw new IOException("Open failed: " + msg);+ throw new IOException("Open failed: " + msg, t);}finally {if (!success) {@@ -306,7 +306,7 @@ public class ProgramContentHandler extends DBWithUserDataContentHandler<ProgramDif (msg == null) {msg = t.toString();}- throw new IOException("Open failed: " + msg);+ throw new IOException("Open failed: " + msg, t);}finally {if (program != null) {