* Dave Rolsky <[EMAIL PROTECTED]> [2007-05-15 01:00]:
> eval
> {
> $user->update( %bunch_of_stuff );
> };
>
> if ( my $e = Exception::Class->caught(
> 'My::App::Exception::DataValidation') )
> {
> # $e->errors contains multiple data validation error messages
> # stuff them in the session
> # save the user's form submission in the session
> # redirect back to form
> }
> elsif ( my $e = $@ )
> {
> die $e;
> }
>
> Then on the display side, I check the session for error
> messages and saved form arguments, and do something useful with
> them.
Surely you mean the stash, not the session?
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/