Source::

Built-in Exceptions

exception NotImplementedError

This exception is derived from RuntimeError. In user defined base classes, abstract methods should raise this exception when they require derived classes to override the method, or while the class is being developed to indicate that the real implementation still needs to be added.

Example usage of NotImplementedError:

Source::

Python Exception Handling – NotImplementedError

_vwDLL2VNHunfIn3S4UUG2NIdUFtX8edNV_EXqklqEr9G85COqsAX31b4MMZLzt88ekG1GDDHWjHpa3xWe34SpIkQf9a7O7eS9NAR_YkAaO3B_wkotuULzNE6P15dgCEH4Grv27f=s0.png

raise NotImplementedError("message for tester")

Exception Handling Example::

x = 5
y = "hello"
try:
    z = x + y
except TypeError:
    print("Error: cannot add an int and a str")