PrepAway - Latest Free Exam Questions & Answers

What should you do?

You create Web-based client applications. You are creating a business logic component. The component has to pass any exception exactly as received to the Web Form procedure that calls the component. The component also has to attach the custom information to the caught exception before the custom information is passed to the Web Form procedure. You need to ensure that the component permits the consumer to deal with the exception by using the least coding effort. What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Catch the original exception and throw it to the Web Form procedure. Include the custom information as the Data property.

B.
Catch the original exception and throw a new exception to the Web Form procedure. Include the custom information as the Data property and the original exception as the InnerException property.

C.
Catch the original exception and throw a new exception to the Web Form procedure. Include the custom information as the Message property.

D.
Catch the original exception and throw a new exception to the Web Form procedure. Include the custom information as the Message property and the original exception as the InnerException property.


Leave a Reply