-
Notifications
You must be signed in to change notification settings - Fork 62
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
Add custom AggregateException serializer. #266
Add custom AggregateException serializer. #266
Conversation
|
||
namespace Hyperion.SerializerFactories | ||
{ | ||
internal sealed class AggregateExceptionSerializerFactory : ValueSerializerFactory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the default ExceptionSerializerFactory
not handle InnerException
s? Or is this different because AggregateException
can store multiple errors at each layer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regular exceptions have InnerException, AggregateException have InnerException and InnerExceptions
@Arkatufus looks like |
info.AddValue("ExceptionMethod", stream.ReadString(session), typeof (string)); | ||
info.AddValue("HResult", stream.ReadInt32(session)); | ||
info.AddValue("Source", stream.ReadString(session), typeof (string)); | ||
info.AddValue("WatsonBuckets", stream.ReadLengthEncodedByteArray(session), typeof (byte[])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this is what's causing the Linux specs to barf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I guess we need to drop it.
…rkatufus/Hyperion into #265_Add_AggregateException_serializer
This serializer would not be available in .NET Standard 1.6 |
Do we have to support this property or can we elide it? |
No idea, I'm just including as much as possible just in case |
Turns out Watson Buckets is a legacy diagnostic data leftover from the XP era. We'll be removing it from the serialization since its windows specific and a bit archaic. |
Closes #265