If you have a main procedure which calls all the other ones in your project, then I guess you just have to place your global error handler in the main procedure.
As far as I know, once an error occurs, an error handler is activated. If not found in the current procedure, then an error handler is activated in the parent procedure and so on.
Assaf