Improvement in message generated when an exception occurs while trying to serialize an object