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