title: Can I return execution to the failing method after an unhandled exception?
body: <p>I have an ASP.NET web site that houses some WCF services. I have hooked up to the Application_Error event, so can log any unhandled exceptions.</p>
  
  <p>What I would really like to do is pass the execution back to the method that was called, so I can return something sensible to the client, rather than throwing a FaultException.</p>
  
  <p>I know I can wrap each individual service call in a try/catch block, but that means a load of boilerplate code in every single method. What I would really like to do is have a central catch-all method, like Application_Error, but then allow the individual service call do take back control and return something meaningful to the client.</p>
  
  <p>Is this possible?</p>
  
  <p>P.S. In case anyone thinks I'm doing this the wrong way, the background to this is that I'm implementing <a href="http://fsharpforfunandprofit.com/rop/" rel="nofollow noreferrer">Railway Oriented Programming</a> in my C# WCF code. The idea is that if there is an exception, I return an appropriate object that contains the details, along with other useful stuff. This is a much more controlled way of dealing with the situation than having the WCF service throw an exception.</p>