What should you do?

You are designing a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
The application will consist of a user interface (UI) tier and a middle tier. The middle tier will be implemented by using Windows Communication Foundation (WCF). You plan to design the exception handling strategy for the application. Each method in the middle tier will contain the following catch block.
Catch e As Argument Null Exception
Throw
When testing the application, you discover that all Argument Null Exceptions that occur in the middle tier do not contain accurate stack trace information.
What should you do?

You are designing a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
The application will consist of a user interface (UI) tier and a middle tier. The middle tier will be implemented by using Windows Communication Foundation (WCF). You plan to design the exception handling strategy for the application. Each method in the middle tier will contain the following catch block.
Catch e As Argument Null Exception
Throw
When testing the application, you discover that all Argument Null Exceptions that occur in the middle tier do not contain accurate stack trace information.
What should you do?

A.
Create an Argument Null Exception handler in the UI tier.

B.
Use a Dispatcher Unhandled Exception Event handler in the UI tier.

C.
Use a Dispatcher Unhandled Exception Event handler in the middle tier

D.
Use a Dispatcher Unhandled Exception Event handler in the middle tier



Leave a Reply 2

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


Benjamin

Benjamin

The text on anwer D is wrong. Actually it is “Remove the exception parameter from the Argument Null Exception handler.”

John Galt

John Galt

Agreed with Benjamin. D is the right answer, you need to remove the Argument from Throw.