LL041
Bare except block
Object Pascal — Delphi & Free Pascal
Warning
Reliability
Catching all exceptions without a type makes debugging and recovery much harder
catching all exceptions without a type makes debugging and recovery much harder.
Why this severity
catching all exceptions without a type makes debugging and recovery much harder.
Known false positives
top-level crash guards that log and re-raise.
Remediation example
try
DoWork;
except
on E: Exception do
Logger.Error(E.Message);
end;