Thursday, September 18, 2014

Faults Vs. Exceptions


Faults Vs. Exceptions

The main thing in faults and exceptions is that "faults and exceptions are not the same thing".


An exception is a .Net mechanism. It is used when the program encounters an error. The .Net language allows us to throw, catch and ignore the exception. At some point
they should be handled or the .Net runtime will terminate the thread in which the exception was thrown.


Faults refer to the SOAP fault mechanism to transfer error information from a service to a client. WCF provides the FaultException class. Whenever a service throws a Fault Exception, WCF serializes the information sent to the client.

Warm Regards

To learn more about MVC please go to the following link.

MVC Articles


Enjoy Coding and Readingclip_image015


Post a Comment