[Dbix-class] Managing error and stopping execution flow.
Denny
2010 at denny.me
Thu Mar 18 11:37:04 GMT 2010
On Thu, 2010-03-18 at 11:07 +0000, David wrote:
> Hi,
>
> I'm controlling errors in my code, but what I don't know is how to
> manage them properly in Catalyst.
>
> When my application was not in Catalyst, I managed errord by launching
> an error page and doing "exit 1;" to stop execution.
> In Catalyst, I forward to my Error View, but once I have done forward
> to the Error View, the execution goes on.
I think you want ->detach or ->go rather than ->forward.
http://search.cpan.org/~bobtfish/Catalyst-Runtime-5.80021/lib/Catalyst.pm#$c->detach(_$action_[,_\@arguments_]_)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20100318/b1f2e188/attachment.pgp
More information about the DBIx-Class
mailing list