GP-0 corrected DBContentHandler exception encapsulation

This commit is contained in:
ghidra1 2023-02-09 17:33:20 -05:00
parent 43bbc10ad9
commit 0380709881
4 changed files with 13 additions and 13 deletions

View file

@ -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) {