|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: Handle application errors with mod_perlby sundialsvc4 (Monsignor) |
| on Feb 07, 2013 at 14:19 UTC ( #1017664=note: print w/ replies, xml ) | Need Help?? |
|
What you should do, really with regards to any substantial Perl application but especially in the case of mod_perl, is to place a “catch-block of last resort” around the entire guts of the application. If an error is raised that is not caught by anyone else, this catch-block (eval in Perl) will catch it and thus maintain control. (The situation, now, is very questionable, such that perhaps the process after sending back its response should kill itself and be re-born.)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||