Back

LL059

Dead code after Exit/raise

Object Pascal — Delphi & Free Pascal
Warning
Maintainability

Unreachable statements waste reader attention and may indicate a logic error

unreachable statements waste reader attention and may indicate a logic error.

Why this severity

unreachable statements waste reader attention and may indicate a logic error.


Known false positives

code guarded by compiler directives that conditionally remove the Exit/raise.

Remediation example

if Failed then
  raise EOperationFailed.Create('msg');
// no unreachable code follows

Reconnecting… Connection lost. Reload