diff --git a/engine/src/networking/com/jme3/network/serializing/serializers/FieldSerializer.java b/engine/src/networking/com/jme3/network/serializing/serializers/FieldSerializer.java index 8e9565b2b..761e202ec 100644 --- a/engine/src/networking/com/jme3/network/serializing/serializers/FieldSerializer.java +++ b/engine/src/networking/com/jme3/network/serializing/serializers/FieldSerializer.java @@ -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) {