[Dbix-class] Re: Catching DBI errors, without eval?
Len Jaffe
lenjaffe at jaffesystems.com
Sun Nov 12 22:47:49 GMT 2006
On 11/12/06, Josef Karthauser <joe at tao.org.uk> wrote:
>
> On Sun, Nov 12, 2006 at 11:56:58AM +0000, Josef Karthauser wrote:
> > Is it possible to catch DBI errors, without having to wrap the code
> > within eval blocks?
> >
At the DBI level, you use the RaiseError option at connect time to determine
whether DBI should raise
an exception. It has a sister option PrintError, which determines whether
the error message ($DBI::errstr)
is printed to SDTERR.
Len
-- =
lenjaffe at jaffesystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jules.scsys.co.uk/pipermail/dbix-class/attachments/20061112/191=
21819/attachment-0001.htm
More information about the Dbix-class
mailing list