NotImplementedError in Python — What It Means and How to Fix It

What Python's NotImplementedError exception means and how to resolve it.

Published October 28, 2026

NotImplementedError is commonly raised deliberately inside a method to indicate a subclass must override it.

Key points

  • Catch it specifically with "except NotImplementedError:" when you want to handle this exact case rather than a bare except

Example

class Base:\n    def area(self): raise NotImplementedError
More Python articles