[Catalyst] ->model-> return values?

Chisel Wright chisel at herlpacker.co.uk
Mon Sep 25 16:08:13 CEST 2006

On Mon, Sep 25, 2006 at 07:04:32AM -0700, Roderick A. Anderson wrote:
> So if an update query should fail because NULL got passed to a NOT NULL 
> field, a letter got into an INT field, etc. or an delete fails because 
> the key doesn't exist.  I'm looking to determine if the update or delete 
> succeeds then do one thing if it fails then another.

Run it (in a transaction) in an eval{} block, then check $@?

Chisel Wright
e: chisel at herlpacker.co.uk
w: http://www.herlpacker.co.uk/

This is not an automated signature. I type this in to the bottom of every

More information about the Catalyst mailing list