[CDBI] Trigger - cancel transaction.

Perrin Harkins perrin at elem.com
Sun Mar 26 21:54:45 BST 2006


Matt S Trout wrote:
> Throwing an exception is almost certainly the best approach. Have a look 
> at Error.pm off CPAN for throw/catch syntax to make it easier for the 
> code using it.

Be careful of Error.pm.  There are multiple traps caused by the 
try/catch implementation.  I recommend David Golden's 
Exception::Class::TryCatch as a safer replacement, although not quite as 
pretty.

- Perrin





More information about the ClassDBI mailing list