This queue is for tickets about the DBIx-Class CPAN distribution.

Report information
The Basics
Id:
81376
Status:
open
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
dhyan [...] nataraj.su
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



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.
On Fri Nov 23 08:58:38 2012, dhyan@nataraj.su wrote:
Show quoted text
> Hi! > > Since autocommit => 1 is going to be deprecated,
^^^ What?! Please clarify ;)
Show quoted text
> When I warped a code in txn_do I found that it is impossible to get > text of > exception as it was thrown.
Yes there are a number of corner cases there. I will revisit this issue shortly. It is not a trivial "just pass objects through" fix, as "what appears on screen" is just as important as being able to interrogate the exception. Stay tuned.
Subject: Re: [rt.cpan.org #81376] Can I get original exceprion text out of txn_do ?
Date: Mon, 26 Nov 2012 14:16:23 +0400
To: bug-DBIx-Class@rt.cpan.org
From: Nikolay Shaplov <dhyan@nataraj.su>
Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=81376 > > > On Fri Nov 23 08:58:38 2012, dhyan@nataraj.su wrote:
> > Hi! > > > > Since autocommit => 1 is going to be deprecated,
> > ^^^ What?! Please clarify ;)
Oups!!! O_o autocommit => 0 0.08127 2011-01-19 16:40 (UTC) second issue not really deprecated, but we decided to move to autocommit => 1 in our code
Show quoted text
> > When I warped a code in txn_do I found that it is impossible to get > > text of > > exception as it was thrown.
> > Yes there are a number of corner cases there. I will revisit this issue > shortly. It is not a trivial "just pass objects through" fix, as "what > appears on screen" is just as important as being able to interrogate the > exception. Stay tuned.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.