Python Arena

Module 25

Handling errors

Handling errors. Checking input before using it, catching exceptions with try and except, handling several kinds of exceptions, how exceptions move from a function to its caller, and raising exceptions of your own.

Steps

  1. Checking input before using it
  2. Catching errors with try and except
  3. Different kinds of errors
  4. How errors move from function to function
  5. Raising errors yourself