- Notifications
You must be signed in to change notification settings - Fork76
Closed
Description
The OraLogger best practice (Link) looks like this:
exception when others then logger.log_error('Unhandled Exception', l_scope, null, l_params); raise; end todo_proc_name;
This will always give me
G-5040: Avoid use of WHEN OTHERS clause in an exception section without any other specific handlers.
I also dont want to disable this rule, because in general it's good. But with logging the error and reraising it I dont see any problem with it.
Could there be an exception for this check when doing a raise (and logging maybe) inside the "WHEN OTHERS"?
(it really bothers me because we use this practice for all fkt/procs and therefore get a ton of these PLSQL Cop warnings)