You design a Windows Presentation Foundation (WPF) application that interacts with a
Windows Communication Foundation (WCF) Web service. The WCF Web service throws
exceptions of type Exception. The WPF application crashes when the WCF Web service
throws an exception. You need to recommend an error-handling strategy that allows users
to submit updated data to the WCF Web service without restarting the WPF application.
What should you recommend?
A.
Modify the Web service to throw exceptions of type FaultException.
B.
Modify the Web service to throw custom exceptions derived from the Exception class.
C.
Modify the Web service to throw exceptions of type InvalidOperationException.
D.
Modify the Web service to throw custom exceptions derived from the
ApplicationException class.