I'm using the WCF Exception Shielding ability for converting an exception to fault exception before I return it to the client.
I want to create for this policy, a custom handler, that will log(using my code) the original exception before the convertion.
My code is:
//here I want to use my code to log the original exception that was raised (not the fault exception)
If I insert to my configuration, the custome handler
before the Fault Contract Exception Handler, I'm getting only the original exception. If I insert to my configuration, the custome handler
after the Fault Contract Exception Handler, I'm getting only the fault exception.
Can I get both of the exceptions in one handler?