Faults Vs. Exceptions
The main thing in faults and exceptions is that "faults and exceptions are not the same thing".
Exceptions
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
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.
Thanks
0 comments :
Post a Comment