WCF - Error Handling
Regardless of what type of application we are creating, mistakes can always happen. The same goes for services and are not exempt from that. In the case of services, the errors can be as varied as possible, with problems in transport (protocol), delivery / receipt of the message at runtime or even (and most common) in the execution of the operation (method ). WCF provides several techniques to analyze and treat the possible errors that occur during the execution of the service. The challenge here is how to make this problem (error) is passed to the client that consumes regardless of platform, giving it the ability to know what happened and how to bypass it, keeping the client application and proxy stable. This article will address how we should proceed to throw errors, notify the customer and how it can do to handle errors that occur. .NET Framework is an error with a class that inherits directly or indirectly from the class ...