Empty catch block

objectscriptQuality release 
1.0.0
Id 
OS0040
Rule type 
Code Smell
Severity 

Major

Major
SQALE characteristic 
  • Changeability
    • Logic
Tags 
design
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.