Last Updated: May 22, 2026
Catching exceptions is only half of error handling. The other half is signaling that something has gone wrong in your own code, and that's what raise is for. This lesson covers how to raise built-in exceptions like ValueError and TypeError, how to pick the right one, how to re-raise inside an except block, and when raising an exception is the wrong choice in the first place.