I don’t quite understand what to do when handling exceptions.

I just throw exceptions to break the program and just print the exception on console. Then I'll just fix the part that caused the exception and re-run the program.

Just today I had a realization that made me look at exceptions in a different light.

So basically, I dont understand where to go from the end of the block that catches the exception.

Am I supposed to rethrow out of each call level, all the way to the top of the calling stack, back to the original loop and then continue onto the next iteration?

by pope_says via /r/csharp

Leave a Reply