Built-in Exceptions
NotImplementedError — exception class
Indicates a promised operation that has not been implemented, for example an overridable method in a base class. It is raised, not returned; NotImplemented is a separate singleton used by binary operator protocols. Catch NotImplementedError when this category is the recovery boundary; do not rely on the exact human-readable message.
Formal Syntax & Structure
python syntaxpython
NotImplementedErrorReturn Value
type
The class object NotImplementedError; this reference documents the class identity, not a universal constructor signature.
Working Example
Example Snippetpython
class Reader: def read(self): raise NotImplementedError("implement read")try: Reader().read()except NotImplementedError as error: print(type(error).__name__)