Exception serializer can't handle custom properties in subclasses
meoblast001 opened this issue · 0 comments
I created a subclass of System.Exception
with its own property that I wanted to serialise. When including all constructors (even methods for ISerializable
). This was packed in a faulted Task
object. After deserialising (using Akka) all Exception properties were fine, but properties I defined on the class were receiving default values (boolean sent with true
was received as false
).
After looking at ExceptionSerializerFactory
, I realised that all objects inheriting from System.Exception
fall into that serialiser but it only serialises properties known to the System.Exception
class (such as class name, message, inner exception, ..).
I would expect that this serialiser would either take into account that the exception may have other properties or at least offer a way to have the exception be sent over another serializer which transports this information.