Which contract is used in WCF Service for Exceptions
-
Message Contract
-
Exception Contract
-
Fault COntract
-
None of the above
C
Correct answer
Explanation
In WCF (Windows Communication Foundation), FaultContract is used to define the error/fault information that a service can send to clients. It specifies the type of SOAP faults that can be returned. MessageContract defines message structure, and there is no 'ExceptionContract' in WCF.