Core Python: Robust Resource and Error Handling

Exceptions are ubiquitous in Python. In this course, you'll broaden your knowledge of exceptions and how to work with them. You'll also be introduced to context managers, Python's facility for safely and automatically managing resources.
Course info
Level
Intermediate
Updated
Jun 29, 2020
Duration
1h 14m
Table of contents
Description
Course info
Level
Intermediate
Updated
Jun 29, 2020
Duration
1h 14m
Description

The dominant error handling strategy in Python is the use of exceptions, and exceptions are ubiquitous in the Python language, standard library, and package ecosystem. In this course, Core Python: Robust Resource and Error Handling, you’ll understand how to work with exceptions in Python. First, you’ll be introduced to context managers, Python’s facility for safely and automatically managing resources. Next, you'll see how larger systems often benefit greatly from more sophisticated exception handling strategies. Finally, you'll discover how to model database transactions. When you're finished with this course, you’ll know how to chain associated exception together, define your own exceptions, and define and deploy context managers.

About the author
About the author

Austin is a founding director of Sixty North, a software consulting, training, and application development company. He's a native of Texas but currently lives in Norway where he writes software, runs a local software interest group, and presents and teaches whenever he can.

More from the author
Core Python: Classes and Object-orientation
Intermediate
2h 54m
Jun 2, 2020
Core Python: Introspection
Intermediate
30m
May 13, 2020
More courses by Austin Bingham
About the author

Robert Smallshire is a founding director of Sixty North, a software product and consulting business in based in Norway. He has held several senior software architecture and technical management roles, and he is a regular conference speaker. Python is his weapon of choice.

More from the author
Core Python: Classes and Object-orientation
Intermediate
2h 54m
Jun 2, 2020
Core Python: Introspection
Intermediate
30m
May 13, 2020
More courses by Robert Smallshire
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi, everyone. My name is Austin Bingham, and welcome to my course, Core Python: Robust Resource and Error Handling. I'm a founder and principal consultant at Sixty North. The dominant error handling strategy in Python is the use of exceptions, and exceptions are ubiquitous in the Python language, standard library, and package ecosystem. While a shallow understanding of exceptions can get you far in simple programs, larger systems often benefit greatly for more sophisticated exception handling strategies, especially when it comes to properly managing system resources in the presence of exceptions. In this course, we'll broaden your knowledge of how to work with exceptions in Python, and we'll introduce you to context managers, Python's facility for safely and automatically managing resources. Some of the major topics we'll cover include creating user‑defined exceptions, exception chaining, the hierarchy of exceptions, exception payloads, tracebacks. and context managers and with statements. By the end of this course, you'll know how to chain associated exceptions together, define your own exceptions, and define and deploy context managers. Before beginning this course, students should be familiar with the essentials of the Python language, in particular how to raise and catch exceptions. This course assumes knowledge of Python equivalent of what's presented in Core Python: Getting Started. I hope you'll join me on this journey to learn more about exceptions and resource handling in Python with the Core Python: Robust Resource and Error Handling course at Pluralsight.