Question 115


70-486 Skills Measured >> 4.2 Troubleshoot and Debug Web Applications >>

Question

Multiple Choice

What is an advantage to using first chance exception notification?

  • A. The ability to capture and handle all exceptions that occur within the application in one place
  • B. The ability to log an exception after it is handled by its appropriate error handling code
  • C. The ability to log an exception before it is touched by any other error handler
  • D. The ability to forward an exception to an error handler based on the type of exception that was thrown

Answer:

C
Explanation
A. Incorrect: First chance exception is a notification only. It does not let you do any­thing other than observe the exception.
B. Incorrect: The first chance exception handler gets the exception before it has been issued to its appropriate error management code. You cannot see what hap­pens to the exception as it is being handled.
C. Correct: The first chance exception handler enables you to examine an exception and take some action before it is touched by any other handler.
D. Incorrect: The first chance exception handler can examine the exception, but can­not forward or handle the exception.