Hi,
I have somewhat unconventional use of exceptions in my app. If an exception happens in the method, I pass it as a part of the result object, smth like this:
pubic class MethodResponse
{
public List<Exception> Errors {get; set;}
public int SomeResult {get; set;}
}
Now, I'm separating Business layer and UI layer using WCF, and I'm getting an issue - WCF doesn't like Exception objects and if one is present in Errors list, it crashes the service. I did some research and it looks like WCF can't serialize Exception class.
Is there a workaround?
Thank you, Andrey