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.
Incorrect
Section titled “Incorrect”def export_report(fmt): if fmt == "pdf": return render_pdf() raise NotImplementedError("CSV export not done yet")Correct
Section titled “Correct”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.