Which class should you inherit?

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?
A. System.ApplicationException
B. System.AccessViolationException
C. System.InvalidOperationException
D. System.Security.SecurityException

microsoft-exams

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.