Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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, 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.



In reply to Catching errors. by Steve_BZ

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!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            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?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others having an uproarious good time at the Monastery: (2)
    As of 2018-01-21 23:06 GMT
    Find Nodes?
      Voting Booth?
      How did you see in the new year?

      Results (230 votes). Check out past polls.