Microsoft
70-518 · Question #198
You are designing a Windows Presentation Foundation (WPF) application that connects to a data access layer on a server. You have the following requirements for all security-related exceptions…
The correct answer is C. System.Security .SecurityException. See the full explanation below for the reasoning.
Question
You are designing a Windows Presentation Foundation (WPF) application that connects to a data access layer on a server. You have the following requirements for all security-related exceptions:
- Exceptions that occur in the data access layer must be handled in a
single exception handler in the WPF application.
- Exceptions must pass customized messages back to the WPF application.
You need to recommend an approach for creating new exception classes in the data access layer. From which class should you inherit?
Options
- ASystem.AccessViolationException
- BSystem.ApplicationException
- CSystem.Security .SecurityException
- DSystem.InvalidOperationException
How the community answered
(58 responses)- A3% (2)
- B9% (5)
- C72% (42)
- D16% (9)
Community Discussion
No community discussion yet for this question.