Python: Exceptions

Lab Steps

lock
Web IDE Review
lock
Introduction to Exceptions
lock
Working with Exceptions
lock
Re-raising and Raising From
lock
Summary

The hands-on lab is part of this learning path

Ready for the real environment experience?

DifficultyIntermediate
Time Limit2h
Students10
Ratings
5/5
starstarstarstarstar

Description

Learn how to create, handle, and raise exceptions in Python.

Exceptions disrupt normal code flow in order to report exceptional conditions. Knowing how to handle exceptions is an essential aspect of software development. This lab introduces exceptions through hands-on learning.

Learning Objectives:

  • Raising exceptions
  • Handling exceptions
  • Creating new exception types
  • Re-raising exceptions

Prerequisites:

  • Proficient with:
    • The Python runtime
    • The Python language syntax
    • Python:
      • Classes
      • Callables
About the Author
Students94265
Labs28
Courses45
Learning paths54

Ben Lambert is a software engineer and was previously the lead author for DevOps and Microsoft Azure training content at Cloud Academy. His courses and learning paths covered Cloud Ecosystem technologies such as DC/OS, configuration management tools, and containers. As a software engineer, Ben’s experience includes building highly available web and mobile apps. When he’s not building software, he’s hiking, camping, or creating video games.

Covered Topics