Which type of exception should the client catch?

You are developing a client application that consumes a Windows Communication
Foundation (WCF) service. The operation contract is as follows. <OperationContract()>
<FaultContract(GetType(SalesFault))> Function GetSales(ByVal saieId As String) As String
The service configuration file contains the following line in the serviceBehaviors section.
<behovior> oerviceDebug includeExceptionDetoilInFaults-“True’V> </behavior> A
divide-by-zero exception is not being handled by the service. You need to ensure that the
exception is caught in the client application. Which type of exception should the client
catch?

You are developing a client application that consumes a Windows Communication
Foundation (WCF) service. The operation contract is as follows. <OperationContract()>
<FaultContract(GetType(SalesFault))> Function GetSales(ByVal saieId As String) As String
The service configuration file contains the following line in the serviceBehaviors section.
<behovior> oerviceDebug includeExceptionDetoilInFaults-“True’V> </behavior> A
divide-by-zero exception is not being handled by the service. You need to ensure that the
exception is caught in the client application. Which type of exception should the client
catch?

A.
DivideByZeroException

B.
TimeoutException

C.
FaultException

D.
FaultException(Of SalesFault)



Leave a Reply 0

Your email address will not be published. Required fields are marked *