Turned ObjectStreamException into a nested exception so that we can
provide information on what exception caused the object serialization or unserialization to freak out. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@464 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: DObjectFactory.java,v 1.8 2001/10/11 04:07:52 mdb Exp $
|
||||
// $Id: DObjectFactory.java,v 1.9 2001/10/16 16:44:20 mdb Exp $
|
||||
|
||||
package com.threerings.presents.dobj.io;
|
||||
|
||||
@@ -59,8 +59,8 @@ public class DObjectFactory
|
||||
return dobj;
|
||||
|
||||
} catch (Exception e) {
|
||||
String errmsg = "Unable to unserialize dobj: " + e;
|
||||
throw new ObjectStreamException(errmsg);
|
||||
String errmsg = "Failure unserializing dobj";
|
||||
throw new ObjectStreamException(errmsg, e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user