The plugin throws an error if processing a template fails. So you can
wrap your calls to tt_process in an eval and catch any errors.
my $output = eval { $self->tt_process({}) };
if ($@) {
# Something went wrong
} else {
return $output
}
I generally just let these errors bubble up and let the
CGI:Application error handler deal with it.
Cheers,
Cees
On Thu, May 19, 2011 at 11:35 PM, gvim <[email protected]> wrote:
> I'm using CA::Plugin::TT and there's no mention in the docs of a
> corresponding method for $tt->error(), ie. $self->tt_error().
>
> gvim
>
> ##### CGI::Application community mailing list ################
> ## ##
> ## To unsubscribe, or change your message delivery options, ##
> ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ##
> ## ##
> ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ##
> ## Wiki: http://cgiapp.erlbaum.net/ ##
> ## ##
> ################################################################
>
>
##### CGI::Application community mailing list ################
## ##
## To unsubscribe, or change your message delivery options, ##
## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ##
## ##
## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ##
## Wiki: http://cgiapp.erlbaum.net/ ##
## ##
################################################################