tag:blogger.com,1999:blog-9049032025342264339.post7051353012204977385..comments2024-03-29T01:06:25.773+03:00Comments on sadomovalex's blog: Simple custom error handler for webHttpBinding in WCFAlexey Sadomovhttp://www.blogger.com/profile/18112105989691733410noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-9049032025342264339.post-75403248411887175082011-06-12T22:02:51.285+04:002011-06-12T22:02:51.285+04:00FaultException as well as FaultException with gene...FaultException as well as FaultException with generic (blogspot trims generics :) ) are not catched on the client side in case of REST endpoints. It works only for SOAP unfortunatelyAlexey Sadomovhttps://www.blogger.com/profile/18112105989691733410noreply@blogger.comtag:blogger.com,1999:blog-9049032025342264339.post-14227029266308560312011-04-05T10:56:57.654+04:002011-04-05T10:56:57.654+04:00Would this simple approach work for you?
1. Do no...Would this simple approach work for you?<br /><br />1. Do not throw generic exceptions from your WCF facade, use FaultException.<br />2. WebHttpBehavior.FaultExceptionEnabled = trueidontsovhttps://www.blogger.com/profile/08661494987614251694noreply@blogger.com