ably / ably-flutter

A wrapper around our Cocoa and Java client library SDKs, providing iOS and Android support for those using Flutter and Dart.
https://ably.com/download
Apache License 2.0
60 stars 16 forks source link

Replaced silent serialization errors with exceptions #409

Closed ikurek closed 2 years ago

ikurek commented 2 years ago

This closes https://github.com/ably/ably-flutter/issues/149. Previously, serialization of enums and values without assigned encoder/decoder failed silently, returning null when proper value was not found. I've replaced these null returns with thrown exceptions, so it's clear that an error has occurred, and should be fixed