Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set your subtitle preferences in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please refer to our video player troubleshooting guide for assistance.

Defining Your Own Exceptions

It is possible to add custom exceptions to your projects. This lesson will show you how to define your own exceptions by inheriting from the Exception class.

Ghani on Oct. 24, 2020

Good course; Thanks!

Stephen on Jan. 11, 2021

Short and sweet and to the point. Thanks.

Walid on Jan. 17, 2021

Dear Madhi, you mentioned that you will leave some material for us! like the list of stdlib exceptions? it is not under supporting material?

Bartosz Zaczyński RP Team on Jan. 18, 2021

@Walid You’ll find all information about the built-in exceptions in Python in the official documentation. Scroll down to the very bottom for a quick reference of the entire exception hierarchy if you don’t want to read the descriptions of the individual classes.

Walid on Jan. 18, 2021

Thank you @Bartosz

Become a Member to join the conversation.