You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Java, if serialization/ deserialization fails, instead of propagating the error, it is logged and ignored, and null is returned instead. For example:
System.out.println("Exception while decoding RestChannelOptions : " + ae);
returnnull;
}
}
It would be nicer during development to have an exception be thrown when serialization fails. We should consider throwing an exception when serialization/ deserialization fails.
The text was updated successfully, but these errors were encountered:
ben-xD
changed the title
Throw errors instead of returning null in serialization/ deserialization code
Throw errors instead of returning null when serialization/ deserialization fails
Aug 10, 2021
In Java, if serialization/ deserialization fails, instead of propagating the error, it is logged and ignored, and
null
is returned instead. For example:ably-flutter/android/src/main/java/io/ably/flutter/plugin/AblyMessageCodec.java
Lines 348 to 357 in 21c49b9
It would be nicer during development to have an exception be thrown when serialization fails. We should consider throwing an exception when serialization/ deserialization fails.
┆Issue is synchronized with this Jira Story by Unito
The text was updated successfully, but these errors were encountered: