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:
parent
c036d36c96
commit
4deb4d46e7
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user