Improved the exception handling when objects fail

to instantiate.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7217 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
PSp..om 2011-04-07 22:40:53 +00:00
parent c036d36c96
commit 4deb4d46e7

View File

@ -99,7 +99,7 @@ public class FieldSerializer extends Serializer {
try {
object = c.newInstance();
} catch (Exception e) {
throw new IOException(e.toString());
throw new SerializerException( "Error creating object of type:" + c, e );
}
for (SavedField savedField : fields) {