List Info

Thread: Exception Handling




Re: Exception Handling
country flaguser name
United Kingdom
2007-07-11 08:52:12
On Wed, Jul 11, 2007 at 10:31:22AM -0300, Otávio Fernandes
wrote:
[...]
> If you're using a web application, I recommend
CGI::Carp, because you can
> write an personalized routine to handle application
errors. I my case,
> when my scripts return an error (like an die, or any
other fail), instead
> my users view "Internal Server Error" (from
Apache), they see my error
> routine build with Carp and CGI ... It's very
interesting.

I like using CGI::Carp even for non-CGI programs, because
you get the
timestamp and name of the script which can be awfully handy
if your program
has ended up being launched from cron and buried five levels
deep in a maze
of twisty shell scripts, all alike.

It doesn't half confuse the sysadmins when your Perl daemon
process logs to
syslog instead of STDERR. It's almost as if they've never
used any other
daemonised program in Unix before, or were expecting all
Perl to be
something along the level of Matt Wright's code.


Re: Exception Handling
country flaguser name
United Kingdom
2007-07-11 13:30:47
On Wed, 11 Jul 2007, Dave Cross wrote:

> We're currently contemplating changing the exception
handling for the project 
> I'm maintaining and Mark's talk would be a good
introduction to the issues we 
> need to consider. Unfortunately, it doesn't seem to be
on the tech talk page 
> on the web site[2].
>
> So, does anyone have either a) a link to that talk or
b) an interesting 
> opinion on which exception handlers I should be
investigating?

I try not to give opinions on which exception handling
modules to use, but 
I do have a couple of talks on this:

http://axkit.org/docs/presentations/tpc2002/exceptions
.pdf
http://axkit.org/docs/presentations/tpc2001/exce
ptions.axp/a.pdf

(the first one is better than the second).

Matt.

____________________________________________________________
__________
This email has been scanned by the MessageLabs Email
Security System.
For more information please visit http://www.messagela
bs.com/email 
____________________________________________________________
__________

Re: Exception Handling
user name
2008-05-09 07:29:02
On Wed, Jul 11, 2007 at 1:07 PM, Mark Overmeer <markovermeer.net> wrote:

>
> Somewhere inbetween the pale die/warn, and the full OO
exceptions,
> there is the new Log::Report distribution.
>
> <snip>
>

> Can you wait to YAPC::EU, or do you like the slides
beforehand 


I would be grateful for a copy of those slides if you still
have them (or
anyone else does).

f

(Yes this is a reply to a 10 month old thread)

[1-10] [11-13]

about | contact  Other archives ( Real Estate discussion Medical topics )