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) { if (msg == null) {
msg = t.toString(); msg = t.toString();
} }
throw new IOException("Open failed: " + msg); throw new IOException("Open failed: " + msg, t);
} }
finally { finally {
if (!success) { if (!success) {
@ -136,7 +136,7 @@ public class DBTraceContentHandler extends DBWithUserDataContentHandler<DBTrace>
if (msg == null) { if (msg == null) {
msg = t.toString(); msg = t.toString();
} }
throw new IOException("Open failed: " + msg); throw new IOException("Open failed: " + msg, t);
} }
finally { finally {
if (!success) { if (!success) {
@ -191,7 +191,7 @@ public class DBTraceContentHandler extends DBWithUserDataContentHandler<DBTrace>
if (msg == null) { if (msg == null) {
msg = t.toString(); msg = t.toString();
} }
throw new IOException("Open failed: " + msg); throw new IOException("Open failed: " + msg, t);
} }
finally { finally {
if (!success) { if (!success) {
@ -288,7 +288,7 @@ public class DBTraceContentHandler extends DBWithUserDataContentHandler<DBTrace>
if (msg == null) { if (msg == null) {
msg = t.toString(); msg = t.toString();
} }
throw new IOException("Open failed: " + msg); throw new IOException("Open failed: " + msg, t);
} }
finally { finally {
if (trace != null) { if (trace != null) {

View file

@ -114,7 +114,7 @@ public class VTSessionContentHandler extends DBContentHandler<VTSessionDB> {
if (msg == null) { if (msg == null) {
msg = t.toString(); 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) { if (msg == null) {
msg = t.toString(); msg = t.toString();
} }
throw new IOException("Open failed: " + msg); throw new IOException("Open failed: " + msg, t);
} }
} }

View file

@ -102,7 +102,7 @@ public class DataTypeArchiveContentHandler extends DBContentHandler<DataTypeArch
if (msg == null) { if (msg == null) {
msg = t.toString(); msg = t.toString();
} }
throw new IOException("Open failed: " + msg); throw new IOException("Open failed: " + msg, t);
} }
finally { finally {
if (!success) { if (!success) {
@ -157,7 +157,7 @@ public class DataTypeArchiveContentHandler extends DBContentHandler<DataTypeArch
if (msg == null) { if (msg == null) {
msg = t.toString(); msg = t.toString();
} }
throw new IOException("Open failed: " + msg); throw new IOException("Open failed: " + msg, t);
} }
finally { finally {
if (!success) { if (!success) {
@ -221,7 +221,7 @@ public class DataTypeArchiveContentHandler extends DBContentHandler<DataTypeArch
if (msg == null) { if (msg == null) {
msg = t.toString(); msg = t.toString();
} }
throw new IOException("Open failed: " + msg); throw new IOException("Open failed: " + msg, t);
} }
finally { finally {
if (!success) { if (!success) {
@ -314,7 +314,7 @@ public class DataTypeArchiveContentHandler extends DBContentHandler<DataTypeArch
if (msg == null) { if (msg == null) {
msg = t.toString(); msg = t.toString();
} }
throw new IOException("Open failed: " + msg); throw new IOException("Open failed: " + msg, t);
} }
finally { finally {
if (dataTypeArchive != null) { if (dataTypeArchive != null) {

View file

@ -149,7 +149,7 @@ public class ProgramContentHandler extends DBWithUserDataContentHandler<ProgramD
if (msg == null) { if (msg == null) {
msg = t.toString(); msg = t.toString();
} }
throw new IOException("Open failed: " + msg); throw new IOException("Open failed: " + msg, t);
} }
finally { finally {
if (!success) { if (!success) {
@ -208,7 +208,7 @@ public class ProgramContentHandler extends DBWithUserDataContentHandler<ProgramD
if (msg == null) { if (msg == null) {
msg = t.toString(); msg = t.toString();
} }
throw new IOException("Open failed: " + msg); throw new IOException("Open failed: " + msg, t);
} }
finally { finally {
if (!success) { if (!success) {
@ -306,7 +306,7 @@ public class ProgramContentHandler extends DBWithUserDataContentHandler<ProgramD
if (msg == null) { if (msg == null) {
msg = t.toString(); msg = t.toString();
} }
throw new IOException("Open failed: " + msg); throw new IOException("Open failed: " + msg, t);
} }
finally { finally {
if (program != null) { if (program != null) {