>
> On Monday, September 9, 2002, at 03:16  PM, Jeff Urlwin wrote:
>
> > Not specifically, but maybe I'm missing something.  If HandleError is
> > called, shouldn't the result of $attr->{HandleError} be checked before
> > trying to RaiseError or PrintError?
>
> AFAIK, HandleError isn't expected to return something, but to do
> something with an error (erm, *handle* it). If it throws an exception,
> RaiseError and PrintError will never be reached. If it changes the
> error message itself (as an example of what it might do), then
> RaiseError and PrintError will do what they do with the changed error
> message.

>From perldoc DBI:

      If the subroutine returns a false value then the "RaiseError" and/or
      "PrintError" attributes are checked and acted upon as normal.

I read that as if the subroutine returns non-false values, then RaiseError
and PrintError will not be acted upon...

Regards,

Jeff


Reply via email to