nerdexam
Microsoft

70-518 · Question #21

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…

The correct answer is D. Remove the exception parameter from the ArgumentNullException handler. See the full explanation below for the reasoning.

Question

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 I Foundation (WCF). Each method in the middle tier will contain the following catch block. Catch (Argument-NullException e) { thcow e; } When testing the application, you discover that all ArgumentNullExceptions exceptions that occur in the middle tier do not contain accurate stack trace information. You need to design the exception handling strategy for the application. What should you do?

Options

  • ACreate an ArgumentFMullException handler in the UI tier.
  • BUse a DispatcherUnhandledExceptionEvent handler in the UI tier.
  • CUse a DispatcherUnhandledExceptionEvent handler in the middle tier.
  • DRemove the exception parameter from the ArgumentNullException handler.

How the community answered

(37 responses)
  • A
    16% (6)
  • B
    3% (1)
  • C
    5% (2)
  • D
    76% (28)

Community Discussion

No community discussion yet for this question.

Full 70-518 Practice