Improved the exception handling when objects fail

to instantiate.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7217 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
PSp..om 14 years ago
parent c036d36c96
commit 4deb4d46e7
  1. 2
      engine/src/networking/com/jme3/network/serializing/serializers/FieldSerializer.java

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

Loading…
Cancel
Save