Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the intricacies of Python exception handling in this comprehensive EuroPython 2019 conference talk. Delve into multiple ways of raising and capturing exceptions, learn when to use built-in exceptions versus creating custom hierarchies, and discover techniques for making exceptions clear and easy to troubleshoot. Gain insights into translating and handling errors, creating your own exceptions, and understanding common pitfalls. Suitable for intermediate developers, this talk provides a solid foundation for working effectively with exceptions, covering topics such as exception flow, unexpected results, and real-world examples. Learn about various utilities available for exception handling, dive deep into the grammar of Python exceptions, and uncover niche information like variable scope in except blocks. The presentation is structured into four main sections: raising, capturing, creating, and designing exceptions, offering valuable tips and highlighting potential pitfalls throughout.
Syllabus
Introduction
Translating Exceptions
Capturing Exceptions
Saving Exceptions
Finally
Else
Order of Exceptions
Login Exceptions
Logging Exceptions
Dont Do It
What Do I Do
String Representation
Exceptions
Raising Exceptions
Rewriting the Abstraction
Raising the Exception
Not implemented
Propagation
Base Exception
What does an exception have
Always inherit from exception
Save arts
Examples
Exceptions vs Error Codes
Quick Catch
Un unreachable hook
Positional only arguments
Cycle
Stop
Questions
Taught by
EuroPython Conference