Shraddha Bhat

Shraddha Bhat

  • NA
  • 13
  • 12.6k

Exception Handlers

Apr 25 2013 4:49 AM
Write a C# program that shows the importance of the order of exception handlers.Write two programs :
One with the correct order of catch handlers and one with an incorrect order (i.e., place the base class
exception handler before the derived –class exception handlers).Show that if you attempt to catch a base –
class exception type before a derived -class exception type ,the derived –class exceptions are not invoked
(which potentially yield logical errors in routine ). Explain why these errors occur.