Are you looking for an error trap at project, module or procedure level??
Also be aware that possibly the most accurate is to switch on line numbers
so you ca report the error line as well?
I've "played" with project level error trapping and not gotten anywhere nice.
You can create a global variable and set it to the proc name at the top of
the procedure and then report that. This is pretty easy to do with a 3rd
party add in called MZ-Tools.