On 11/12/06, Josef Karthauser <[EMAIL PROTECTED]> 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




--
[EMAIL PROTECTED]
_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/

Reply via email to