Exception handling

  1. Hierarchy of calls
  2. Handling errors as return values
  3. Handling errors as exceptions
  4. A simple exception
  5. Prevention
  6. Working on a list
  7. Catch ZeroDivisionError exception
  8. Module to open files and calculate something
  9. File for exception handling example
  10. Open files - exception
  11. Handle divide by zero exception
  12. Handle files - exception
  13. Catch all the exceptions and show their type
  14. List exception types
  15. Hierarchy of Exceptions
  16. Order of exception handling - bad
  17. Order of exception handling - good
  18. How to raise an exception
  19. Raise ValueError exception
  20. Stack trace of exceptions
  21. No need for exception to print Stack trace
  22. Raise Exception from
  23. Exercise: Exception int conversion
  24. Exercise: Raise Exception
  25. Solution: Exception int conversion (specific)
  26. Solution: Exception int conversion (all other)
  27. Solution: Raise Exception