How can you create a custom exception class in Python?
By inheriting from the Exception class
By using the @exception decorator
Custom exceptions must inherit from Exception class.
By creating a class with any name
This question is part of this quiz :
Python Classes Quiz