View Categories

Avoid Return Statements In try/catch Finally Blocks

Table of Contents

Impact area

Manageability

Severity

high

Affected element

Salesforce

Apex Class

Rule ID #

SF-AVOID-RETURN-FINALLY

Impact

Return statements in try/catch finally blocks are always executed so any exception raised before is ignored.

Remediation #

Remove return statement in try/catch finally and review your error handling logic.

Time to fix

30 min

Powered by BetterDocs