How should you complete the relevant code?

You are developing an application that implements aset of custom exception types. You declare the custom
exception types by using the following code segments:

The application includes a function named DoWork that throws .NET Framework exceptions and custom
exceptions.
The application contains only the following loggingmethods:

The application must meet the following requirements:
-When AdventureWorksValidationException exceptions are caught, log the information by using the static
void Log (AdventureWorksValidationException ex) method. -When AdventureWorksDbException or other
AdventureWorksException exceptions are caught, log the information by using the static void I
oq( AdventureWorksException ex) method.
You need to meet the requirements.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the
correct locations in the answer area. Each code segment may be used once, more than once, or not at all.
You may need to drag the split bar between panes orscroll to view content.)

You are developing an application that implements aset of custom exception types. You declare the custom
exception types by using the following code segments:

The application includes a function named DoWork that throws .NET Framework exceptions and custom
exceptions.
The application contains only the following loggingmethods:

The application must meet the following requirements:
-When AdventureWorksValidationException exceptions are caught, log the information by using the static
void Log (AdventureWorksValidationException ex) method. -When AdventureWorksDbException or other
AdventureWorksException exceptions are caught, log the information by using the static void I
oq( AdventureWorksException ex) method.
You need to meet the requirements.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the
correct locations in the answer area. Each code segment may be used once, more than once, or not at all.
You may need to drag the split bar between panes orscroll to view content.)

Answer:

Explanation:



Leave a Reply 3

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


MarcoJacob

MarcoJacob

There are only 3 exception types possible, so “ContosoDBException” is stupid

devdevprof

devdevprof

still needs to place it in the right way:

try{
} catch (AdventureWorksValidationException ex){
} catch (AdventureWorksException ex){
} catch (Exception ex){
}

Herman McConnell

Herman McConnell

Do agree with devdevprof.

And questions is really pretty weird.