Source::
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
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")