Skip Menu |

This queue is for tickets about the Rose-DB CPAN distribution.

Report information
The Basics
Id: 63377
Status: resolved
Priority: 0/
Queue: Rose-DB

People
Owner: Nobody in particular
Requestors: SILASMONK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.762
Fixed in: 0.765



Subject: Would appreciate explicit support for the HandleError attribute
The use case is Exception::Class::DBI. The following seems to work as a workaround hence it is only wishlist: package My::DB; use base Rose::DB; use Exception::Class::DBI; __PACKAGE__->use_private_registry; __PACKAGE__->register_db( ..............., print_error=>0, raise_error=>0, ); __PACKAGE__->registry->entry(domain=>'default',type=>'default')->connect_option(HandleError=>Exception::Class::DBI->handler);
On Sat Nov 27 06:29:36 2010, SILASMONK wrote: Show quoted text
> The use case is Exception::Class::DBI. The following seems to work as > a workaround hence it is only wishlist:
What would the "non-workaround" version look like?
On Sat Nov 27 10:51:56 2010, JSIRACUSA wrote: Show quoted text
> On Sat Nov 27 06:29:36 2010, SILASMONK wrote:
> > The use case is Exception::Class::DBI. The following seems to work as > > a workaround hence it is only wishlist:
> > What would the "non-workaround" version look like?
package My::DB; use base Rose::DB; use Exception::Class::DBI; __PACKAGE__->use_private_registry; __PACKAGE__->register_db( ..............., autocommit=>0, print_error=>0, raise_error=>0, handle_error=>Exception::Class::DBI->handler, );
I added this in Rose::DB 0.765, just uploaded to CPAN.