Is it possible to catch DBI errors, without having to wrap the code
within eval blocks?

The specific place where I'm experiencing trouble is,

    DELETE FROM contact WHERE ( contactid = ? AND owner = ? ): '1203', '7'
    DBD::mysql::st execute failed: Cannot delete or update a parent row: a
    foreign key constraint fails at
    /usr/local/lib/perl5/site_perl/5.8.8/DBIx/Class/Storage/DBI.pm line 771.

which was generated from an $obj->delete call.

Joe
-- 
Josef Karthauser ([EMAIL PROTECTED])           http://www.josef-k.net/
Physics Particle Theory (student)   http://www.pact.cpes.sussex.ac.uk/
================ An eclectic mix of fact and theory. =================

Attachment: pgpySzwtAAj1b.pgp
Description: PGP signature

_______________________________________________
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