Log our low-level stack traces when we get them because I've seen at least

one instance of the nested exception failing to log anything useful when
it is reported at a higher level and we're seeing failures in the
low-level streamable decoding code which need debugging.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2087 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-12-23 00:40:39 +00:00
parent 6c3d9fba65
commit 4c39fb3fb8
+5 -1
View File
@@ -1,5 +1,5 @@
//
// $Id: Streamer.java,v 1.4 2002/12/21 00:44:03 mdb Exp $
// $Id: Streamer.java,v 1.5 2002/12/23 00:40:39 mdb Exp $
package com.threerings.io;
@@ -105,6 +105,7 @@ public class Streamer
if (t instanceof InvocationTargetException) {
t = ((InvocationTargetException)t).getTargetException();
}
Log.logStackTrace(t);
if (t instanceof IOException) {
throw (IOException)t;
}
@@ -172,6 +173,7 @@ public class Streamer
// ", field=" + field.getName() + "].");
fm.writeField(field, object, out);
} catch (Exception e) {
Log.logStackTrace(e);
String errmsg = "Failure writing streamable field " +
"[class=" + _target.getName() +
", field=" + field.getName() + "]";
@@ -236,6 +238,7 @@ public class Streamer
if (t instanceof InvocationTargetException) {
t = ((InvocationTargetException)t).getTargetException();
}
Log.logStackTrace(t);
if (t instanceof IOException) {
throw (IOException)t;
}
@@ -292,6 +295,7 @@ public class Streamer
try {
fm.readField(field, object, in);
} catch (Exception e) {
Log.logStackTrace(e);
String errmsg = "Failure reading streamable field " +
"[class=" + _target.getName() +
", field=" + field.getName() + "]";