Hi,
It used to be the case (some versions ago) that if you died with an object
inside a txn_do() then the re-thrown error would still contain that object.

However now it seems to be stringified on the way out.

To give an example, I'm sure I used to be able to do this:

try {
  $schema->txn_do(sub {
      die Custom::Exception->new(msg => "foobar");
  });
}
catch {
  $_->custom_exception_method;
};

Is there any way to get back to that behaviour?
Cheers,
Toby

-- 
Turning and turning in the widening gyre
The falcon cannot hear the falconer
Things fall apart; the center cannot hold
Mere anarchy is loosed upon the world
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk

Reply via email to