Chain exceptions when we can.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1028 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: Marshaller.java,v 1.9 2002/02/02 01:07:20 mdb Exp $
|
// $Id: Marshaller.java,v 1.10 2002/02/19 03:30:40 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.presents.io;
|
package com.threerings.presents.io;
|
||||||
|
|
||||||
@@ -120,7 +120,7 @@ public class Marshaller
|
|||||||
String errmsg = "Unable to marshall obj field " +
|
String errmsg = "Unable to marshall obj field " +
|
||||||
"[field=" + _fields[i].getName() +
|
"[field=" + _fields[i].getName() +
|
||||||
", obj=" + obj + "].";
|
", obj=" + obj + "].";
|
||||||
throw new ObjectStreamException(errmsg);
|
throw new ObjectStreamException(errmsg, iae);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -145,7 +145,7 @@ public class Marshaller
|
|||||||
"[field=" + _fields[i].getName() +
|
"[field=" + _fields[i].getName() +
|
||||||
", obj=" + obj + "].";
|
", obj=" + obj + "].";
|
||||||
Log.logStackTrace(iae);
|
Log.logStackTrace(iae);
|
||||||
throw new ObjectStreamException(errmsg);
|
throw new ObjectStreamException(errmsg, iae);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user