Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Comment on

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

Gentlebeings ... a moment’s respectful pause, I beseech thee ...

The root cause of the problem, with respect to this mod_perl-based application, is not that a misfortunate error occurred ... but that the consequence of that error, when it misfortunately occurred, was that the exception blew all the way out to “Apache, itself.”   Any self-respecting web application, in whatever implementation-language it might be, must be able to keep up a good face in front of its audience while the show is going on, no matter what sort of calamity is happening backstage.

“Ladies and Gentlemen, good evening.   I’m very sorry, but the entire back-half of the theater has just been consumed by an unanticipated thermonuclear fusion reaction.   Will you please now gather your coats and exit through the doorways to the left or to the right.   You may exchange your tickets for a full refund at the box-office tomorrow morning if the aforesaid box office is still here.   Thank you, and good night.”   Grace under pressure.

“SQL errors,” (will surprises never cease??) ... guess what ... sh*t happens.   Just like any other sh*t that “could happen.”   But the bottom line is ... no matter what happens, you gotta save face in front of the customer.

Ergo:   you must, above all else, ensure that there is “an exception-handler of last resort.”   And, having built that, you must likewise ensure that it does something reasonable.   Hand the doomed customer a free drink along with his life-jacket.   But don’t, whatever you do, actually let the airplane hit the ground.   That’s not “Perl” ... that’s not even “web.”   That’s just common sense.

The second point, likewise, is “just common sense.”   If the theater that you are running has just experienced a thermonuclear meltdown, for reasons that you particularly know not, then it just might be prudent to commit suicide, so that the operating system will obliterate all the wreckage.   Apache, in its turn, will then spawn a brand new clean-slate.

Hey ... if that “bothers you,” then with my blessings please down-vote this response to your heart’s content and have a wonderfully nice day.

In reply to Re: Handle application errors with mod_perl by sundialsvc4
in thread Handle application errors with mod_perl by dvwright

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 the voices are still...

    How do I use this? | Other CB clients
    Other Users?
    Others rifling through the Monastery: (6)
    As of 2018-03-18 12:13 GMT
    Find Nodes?
      Voting Booth?
      When I think of a mole I think of:

      Results (230 votes). Check out past polls.