Steve_BZ has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I'm trying to automate the catching and reporting of remote user errors as far as possible. Mainly because users don't always want to pick up the phone, (or it's not convenient if you are in the middle of a medical procedure, for example) and don't collect the info I need to fix problems. I'd like to find out if it is possible to automate the "deeper" errors. So here is a table of some of my code's responses, as you see, there are some lines where I don't have a response except "pick up the phone".
Can anyone suggest ways of trapping these errors and sending a message of some kind to the developer?
Error Type | Response |
Missing help | email message to developer and display help menu. |
Missing translation | email message to translator, display message in English |
Sql error | Customised die routine, send email to developer and then die. |
File error | Customised die routine, send email to developer and then die. |
Missing perl function (eg missing 'GetChar' at line 88 in Foo.pm, perhaps you forgot to use xxx). | (I remain hopeful that I can somehow trap these, but I don't know how) |
Seg fault. | I suspect these will always be crashes. Maybe I could run the application from a script file and the script does something with STDERR to trap the error. |
Compile time crash. | As above. |
Any and all suggestions welcome.
Regards
Steve
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Catching errors.
by RichardK (Parson) on Apr 02, 2013 at 13:39 UTC | |
by Steve_BZ (Chaplain) on Apr 02, 2013 at 14:12 UTC | |
Re: Catching errors.
by MidLifeXis (Monsignor) on Apr 02, 2013 at 14:47 UTC | |
by Steve_BZ (Chaplain) on Apr 02, 2013 at 14:58 UTC | |
by Old_Gray_Bear (Bishop) on Apr 02, 2013 at 16:12 UTC | |
Re: Catching errors.
by saberworks (Curate) on Apr 02, 2013 at 19:38 UTC | |
by Steve_BZ (Chaplain) on Apr 12, 2013 at 18:31 UTC |