You now handle errors with exceptions.
1. try blocks contain code that might fail
2. catch blocks handle specific exception types
3. throw signals an error condition
4. Standard exceptions cover common error cases
Good job. Your programs handle errors gracefully. Next, you will learn dynamic memory for runtime allocation.