Microsoft
70-513 · Question #180
You create a Windows Communication Foundation (WCF) service. The service must meet the following requirements: - Communicate errors as exceptions that originate in the service operations. - Publish…
The correct answer is B. FaultException. See the full explanation below for the reasoning.
Question
You create a Windows Communication Foundation (WCF) service. The service must meet the following requirements:
- Communicate errors as exceptions that originate in the service
operations.
- Publish the errors as part of the WCF contract.
You need to throw an exception inside the service operation method. Which type of exception should you throw?
Options
- AProtocolException
- BFaultException
- CPoisionMessageException
- DCommunicationException
How the community answered
(54 responses)- A2% (1)
- B83% (45)
- C6% (3)
- D9% (5)
Community Discussion
No community discussion yet for this question.