Empty catch block
objectscriptQuality release
Id
OS0040
Rule type
Code Smell
Severity
Major
Major
SQALE characteristic
- Changeability
- Logic
Remediation function
Constant/issue
Remediation cost
2h
Empty CATCH blocks, as in:
try { // whatever } catch { // nothing }
are rarely legitimate and should be avoided.
Try and redesign the code so as to eliminate the need for this construct. If the intent is really to ignore the exception, consider at least logging it.