C# C# Basics (Retired) Perfect Integers and Doubles

nave lahav
nave lahav
388 Points

catch error

can you use the try and catch method for errors and not exaptions?

1 Answer

Jon Wood
Jon Wood
9,883 Points

Exceptions are essentially errors in your program that can cause your program to crash. Handling them with the try/catch block is a way to keep your program running.

I believe Jeremy mentioned in one of the videos that you should try to avoid using exceptions as flow control.

When you mean "errors", do you mean logical errors?