FastEasyMapping icon indicating copy to clipboard operation
FastEasyMapping copied to clipboard

What if there is an error duration serializing & deserializing?

Open limbo-lab opened this issue 10 years ago • 3 comments

It seems it has no error handling duration serialing & deserializing.

limbo-lab avatar Jan 06 '16 02:01 limbo-lab

Hello, @limbo-lab! At this moment - nope. What kind of errors do you need to handle?

dimazen avatar Jan 11 '16 20:01 dimazen

@dimazen What if the type returned by the server isn't as expected - I assume outdated clients would want to handle the error gracefully.

Unfortunately I have worked with organisations in the past who provide inconsistent feeds thus it is a requirement to not crash!

ollieatkinson avatar Feb 23 '16 15:02 ollieatkinson

Hm, for now the only way to handle this is to wrap deserialization into the try/catch, since most of the errors are generated by the KVC. I actually wasn't planning any sort of the errors handling in the next release (the one with Realm support).

dimazen avatar Mar 01 '16 14:03 dimazen