Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Catching Template Toolkit Errors

by astroboy (Chaplain)
on Mar 19, 2007 at 21:34 UTC ( [id://605594]=note: print w/replies, xml ) Need Help??


in reply to Catching Template Toolkit Errors

I'm not sure I understand you problem. In CGI::App, the error is passed as a parameter to your error runmode:
sub error { my $self = shift; my $error = shift; # Do something with the error - e.g. write it to a log file $self->logger->error("Warning error: $error"); #.... and then provide friendly message to user }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://605594]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-04-18 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found