From 4deb4d46e7b2ccda2ec8ffa984ef3174a33c1366 Mon Sep 17 00:00:00 2001 From: "PSp..om" Date: Thu, 7 Apr 2011 22:40:53 +0000 Subject: [PATCH] Improved the exception handling when objects fail to instantiate. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7217 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../jme3/network/serializing/serializers/FieldSerializer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {