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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top