[Dbix-class] Throwing exceptions from exception_action

Patrick Meidl patrick at pantheon.at
Mon Apr 23 07:26:16 GMT 2012


On Mon, Apr 23 2012, Konstantin A. Pustovalov <lamoz at adriver.ru> wrote:

> I tried to throw typed exceptions from exception_action based on DBD
> error codes. And to no avail.

hi Konstantin,

I can't comment on your DBIx::Class problem, but if you want to use
typed exceptions, I'd recommend using Trycatch to handle them:

https://metacpan.org/module/TryCatch

this is a nice implementation of java-style exception semantics in perl.

HTH

    patrick

-- 
Patrick Meidl ........................ +43 1 9688226 (home)
Pazmanitengasse 4/10 ................. +43 680 2072780 (mobile)
1020 Wien ............................ patrick at pantheon.at
Austria .............................. http://pmeidl.homelinux.net/
--




More information about the DBIx-Class mailing list