Last post Feb 27, 2013 05:25 AM by DarrellNorton
Feb 27, 2013 04:50 AM|allfornet|LINK
I have a wcf service which has many methods. Every method has a try catch block to catch exceptions like communication exception, timeout exception and any code specifc exception. I want a way to put this in a common place so that I dont have to repeat this
catch blocks in every method.
Feb 27, 2013 05:25 AM|DarrellNorton|LINK
You can configure and implement an IErrorHandler to do centralized error handling in WCF.
See this blog post for sample code: http://www.neovolve.com/post/2008/04/07/implementing-ierrorhandler.aspx