You are busy creating a class that derives from Installer. The class that you created is used by Microsoft Windows Forms application to install a custom component which uses an existing Microsoft Access database.
Which exception type should you use if the database does not exist at installation time and you need to throw an exception and have the installation rolled back?
A.
You should install InstallException
B.
You should install ApplicationException
C.
You should install SqlException
D.
You should install FileNotFoundException
Explanation:
The InstallException passes information to the Microsoft Windows Installer and causes the installation to be rolled back.Incorrect Answers:
B: The ApplicationException will not cause the installation to roll back.
C: The SqlException will not cause the installation to roll back.
D: The FileNtFoundException will not cause the installation to roll back.