Back

LL073

Overly broad except

Object Pascal — Delphi & Free Pascal
Info
Reliability

Catching generic Exception hides specific failures and makes debugging harder

catching generic Exception hides specific failures and makes debugging harder.

Why this severity

catching generic Exception hides specific failures and makes debugging harder.


Known false positives

top-level exception handlers that log and re-raise all exceptions.

Remediation example

except
  on E: EConvertError do
    HandleConversion(E);
end;

Reconnecting… Connection lost. Reload