We have a system with a WCF layer.
WCF services can throw various FaultExceptions, these are exceptions like:
FaultException<MyStronglyTypedException>
All strong exception types are inherited from the base exception.
public class MyStronglyTypedException : MyBaseException
I can catch a FaultException, but then I do not have access to the Detail property of the FaultException property.
I would like to catch:
FaultException<MyBaseException>
But this is not possible.
Is there a way to access the Detail property from a FaultException without catching every single strongly typed exception?
exception-handling wcf
Shiraz bhaiji
source share