[Catalyst] Error handling strategy wrt /end

raptor raptor at tvskat.net
Fri Jan 27 13:46:52 CET 2006


If i understood  most of u correctly..U do error handling like this.
Just example of one possible way.

1. error happens somewhere (model, contrroler, whatever), u do $c->error('some error');
2. at the 'end' u check for error, if such exists u forward to error-template

Second $c->error(0) is used to clear the state..
Third : does $c->error('someothing...') fills array of errors i.e. cumulative ?

tia



More information about the Catalyst mailing list