I am trying my hand at throwing custom exceptions. Unfortunately, while my code to catch them does work, all the other exceptions go thru my exception handler. How do I let the exception continue on so that the VS debugger stops at the line of code that caused the problen and not in my custom catch routine which is only looking for a few things?
I tried IOException but that didnt work. I want the VS debugger to handle all exceptions like it normally does and not stop in my above code with the message "Exception Unhandled"
I did spend some time googleing this but there was too much googlenoise.
Thanks for looking!
Code:
try
{
SolveProblem();
}
catch (Exception e)
{
if (e.Message == "Completed")
{
Environment.Exit(0);
}
else throw (new (WhateverWorksGoesHere));
}
I did spend some time googleing this but there was too much googlenoise.
Thanks for looking!



Comment