Toby Corkindale wrote:
> However, I've tried putting an error subroutine into both the main driver
> class, and also the model classes too.
> In neither case was it actually called when the DB threw up an error.
>
> Is the error sub supposed to be called in these cases, or am I misinterpreting
> what it was designed for?
It doesn't get called. You have to call it when you think it is
appropriate, as described in the manual:
Now in your actions you can say things like this:
if (1 == 0) { return $r->error("Sky fell!") }
Cheers, Dave
_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole
This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT