Name of the class

Report a typo

Take a look at the following code snippet. What is the name of the built-in class that all the exceptions should derive from? Enter this missing name in the text field below.

class QuantityError(...):
    def __str__(self):
        return 'You should enter at least 1 item.'
Enter a short text
___

Create a free account to access the full topic