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