Locked learning resources

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

Unlock This Lesson

Locked learning resources

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

Unlock This Lesson

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.

Avatar image for Ghani

Ghani on Oct. 24, 2020

Good course; Thanks!

Avatar image for Stephen

Stephen on Jan. 11, 2021

Short and sweet and to the point. Thanks.

Avatar image for Walid

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?

Avatar image for Bartosz Zaczyński

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.

Avatar image for Walid

Walid on Jan. 18, 2021

Thank you @Bartosz

Become a Member to join the conversation.