Question: Common error handler

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am planning on implementing a error handler that has one interface, that
is all the signals shall go into one module and then the module should
determine where the signal or error shold go from there or which response it
should receive.

Is there anyone that can point me in the right direction, any readings/links
would be highly appreciated.

TIA,

Erica
 
Erica said:
I am planning on implementing a error handler that has one interface, that
is all the signals shall go into one module and then the module should
determine where the signal or error shold go from there or which response it
should receive.

If you're thinking about a global Exception Handler, then no - you can't
do this.
By the time the code in your Exception Handling routine gets called, the
routine in which the error /occurred/ is long dead and gone. There's no
way to "get back" to the routine in which the Exception was raised.

The /most/ a global Exception Handler can do is to /log/ as much detail
as it can about the problem, then tidily kill or restart the program.

Anything more /useful/ has to be put much, much closer to the source of
the problem.

Regards,
Phill W.
 
Back
Top