Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception serializer can't handle custom properties in subclasses #102

Open
meoblast001 opened this issue Sep 4, 2018 · 0 comments
Open

Comments

@meoblast001
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant