Removed the extraneous warning message since you will
get an exception with the same info (and it's not a warning anyway, it's fatal). Also improved the error message to include the field that failed to write. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8960 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
8a9ec04e35
commit
1083cbd5aa
@ -179,8 +179,7 @@ public class FieldSerializer extends Serializer {
|
|||||||
} catch (BufferOverflowException boe) {
|
} catch (BufferOverflowException boe) {
|
||||||
throw boe;
|
throw boe;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.log(Level.WARNING, "[FieldSerializer][???] Exception occurred on writing. Maybe you've forgotten to register a class, or maybe a class member does not have a serializer.");
|
throw new SerializerException( "Error writing object for field:" + savedField.field, e );
|
||||||
throw new SerializerException( "Error writing object", e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user