Skip to content

Not Implemented Exception (ARCH2156)

Key python.logging.not-implemented · Severity info · Category logging

Placeholder errors like NotImplementedError cause unexpected runtime crashes if they remain in shipped code paths. They are usually leftover traces of incomplete development.

def export_report(fmt):
if fmt == "pdf":
return render_pdf()
raise NotImplementedError("CSV export not done yet")
def export_report(fmt):
if fmt == "pdf":
return render_pdf()
if fmt == "csv":
return render_csv()
raise ValueError(f"Unsupported format: {fmt}")

Replace placeholder errors with a real implementation or raise a meaningful domain exception.