Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

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


In reply to Catching errors. by Steve_BZ

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others lurking in the Monastery: (15)
    As of 2014-09-02 19:14 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      My favorite cookbook is:










      Results (29 votes), past polls