Goodbye, NestableIOException.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3788 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2005-12-20 02:09:18 +00:00
parent c7d36f9705
commit 7a64be94f2
7 changed files with 26 additions and 34 deletions
+6 -7
View File
@@ -34,7 +34,6 @@ import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import com.samskivert.io.NestableIOException;
import com.samskivert.util.ClassUtil;
import com.threerings.presents.Log;
@@ -149,7 +148,7 @@ public class Streamer
}
String errmsg = "Failure invoking streamable writer " +
"[class=" + _target.getName() + "]";
throw new NestableIOException(errmsg, t);
throw (IOException) new IOException(errmsg).initCause(t);
}
return;
}
@@ -217,7 +216,7 @@ public class Streamer
String errmsg = "Failure writing streamable field " +
"[class=" + _target.getName() +
", field=" + field.getName() + "]";
throw new NestableIOException(errmsg, e);
throw (IOException) new IOException(errmsg).initCause(e);
}
}
}
@@ -254,12 +253,12 @@ public class Streamer
} catch (InstantiationException ie) {
String errmsg = "Error instantiating object " +
"[type=" + _target.getName() + "]";
throw new NestableIOException(errmsg, ie);
throw (IOException) new IOException(errmsg).initCause(ie);
} catch (IllegalAccessException iae) {
String errmsg = "Error instantiating object " +
"[type=" + _target.getName() + "]";
throw new NestableIOException(errmsg, iae);
throw (IOException) new IOException(errmsg).initCause(iae);
}
}
@@ -296,7 +295,7 @@ public class Streamer
}
String errmsg = "Failure invoking streamable reader " +
"[class=" + _target.getName() + "]";
throw new NestableIOException(errmsg, t);
throw (IOException) new IOException(errmsg).initCause(t);
}
return;
}
@@ -378,7 +377,7 @@ public class Streamer
String errmsg = "Failure reading streamable field " +
"[class=" + _target.getName() +
", field=" + field.getName() + "]";
throw new NestableIOException(errmsg, e);
throw (IOException) new IOException(errmsg).initCause(e);
}
}