Home
Generic exceptions should not be ignored
Rule description
- Generic exceptions should not be ignored
Non-compliant Code Example
TRY id = string (acos (ld_num1)) CATCH (runtimeerror er) // catch block with only return statement Return id FINALLY // Add cleanup code here id = "id" Return "" END TRY
TRY ls_valor = string (acos (ld_num)) CATCH (runtimeerror er) // catch block with no statements //MessageBox("Runtime Error", er.GetMessage()) //The code is commented FINALLY // Add cleanup code here ls_valor = "ls_valor" Return "" END TRY