On Sun, Nov 12, 2006 at 05:43:59PM -0500, Christopher H. Laco wrote: > > > > What I'd like to do is call > > > > $object->delete > > > > and have it return a success or failure status. I'm surprised that > > nobody appears to require this kind of behaviour. > > What version are you on? > The upcoming 0.08 release (or -current from svn) has exception_action(), > which allow onw to direct exceptions to another sub for processing. >
Version 0.07002.
> In previous versions, you could also set the HandleError option in the
> connection information, or even set it on the active dbh:
>
> > $schema_instance->storage->dbh->{HandleError} = sub process_error();
>
Great. This is helpful. Thanks.
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. =================
pgp1ayFAp5uaC.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]/
