|Subject:||Can I get original exceprion text out of txn_do ?|
|Date:||Fri, 23 Nov 2012 17:55:48 +0400|
|To:||bug-DBIx-Class [...] rt.cpan.org|
|From:||Nikolay Shaplov <dhyan [...] nataraj.su>|
Hi! Since autocommit => 1 is going to be deprecated, I started to move my code to txn_do, and found a problem: my code used to throw some text messages exception when something is wrong while processing the data. From the outside I caught the exception and do some analysis. When I warped a code in txn_do I found that it is impossible to get text of exception as it was thrown. DBIx::Class::Exception adds there it's own debug information, that is useful when it is real error happen and developer reads it from screen, but it is useless and even painful for automatic exception processing. Is it possible to add one more hash item in DBIx::Class::Exception hashref, where an original exception message is stored, and add a class function that allows to read this message? I think it will make my life more simple, and I think a life of other people who uses txn_do.