Catalyst::Plugin::MortalForward

Catalyst::Plugin::MortalForward is a Perl module to make forward() to throw exception.
Download

Catalyst::Plugin::MortalForward Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Six Apart
  • Publisher web site:
  • http://search.cpan.org/~yannk/Catalyst-Plugin-MortalForward-0.01/lib/Catalyst/Plugin/MortalForward.pm

Catalyst::Plugin::MortalForward Tags


Catalyst::Plugin::MortalForward Description

Catalyst::Plugin::MortalForward is a Perl module to make forward() to throw exception. Catalyst::Plugin::MortalForward is a Perl module to make forward() to throw exception.SYNOPSIS use Catalyst qw( MortalForward ); sub someaction : Local { ... $c->forward('check_input'); # may die # never executed if forward dies do_something_important(); # assume that the input has been checked }Catalyst::Plugin::MortalForward is a small plugin that changes the behaviour of $c->forward which usually never dies (because the forwarded code is internally wrapped into an eval block.This plugin changes this behaviour globally. The forward method will throw exceptions (that you should be carefull to handle at somepoint or the default Catalyst error page will be displayed) Requirements: · Perl


Catalyst::Plugin::MortalForward Related Software