I am struggling to figure out a way to handle exceptions in my application.
My application is Hybrid and mainly a .Net application that uses SharePoint 2010 for document management only.
I want to delegate error handling completely to SharePoint. Not looking for a Response.Redirect("...sp-site-url/_layouts/Error.aspx") kind of a solution. I know that SharePoint offers exception handling and custom pages for Access Denied, Error, Confirmation, etc.
Is there a way by modifying web.config or by making some other configurations that can automatically identify the type of error and make SharePoint handle it? Or just by throwing an SPException it can be handled?