X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FBlockRunner.pm;h=404e480a78b5b9ec25a2335bf3852735510a57f6;hb=9f30030205481d5b2c8d0f7d637259c5ae6dd52d;hp=fe2d221d3bf5c01aa80759bc101e045ab21eb5a8;hpb=9345b14c6c86aa8888bf5d47a569ee9bbde24f47;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/Storage/BlockRunner.pm b/lib/DBIx/Class/Storage/BlockRunner.pm index fe2d221..404e480 100644 --- a/lib/DBIx/Class/Storage/BlockRunner.pm +++ b/lib/DBIx/Class/Storage/BlockRunner.pm @@ -76,7 +76,7 @@ has retried_count => ( default => quote_sub(q{ 0 }), lazy => 1, trigger => quote_sub(q{ - DBIx::Class::Exception->throw(sprintf ( + $_[0]->throw_exception( sprintf ( 'Exceeded max_retried_count amount of %d, latest exception: %s', $_[0]->max_retried_count, $_[0]->last_exception )) if $_[0]->max_retried_count < ($_[1]||0); @@ -93,10 +93,12 @@ has exception_stack => ( sub last_exception { shift->exception_stack->[-1] } +sub throw_exception { shift->storage->throw_exception (@_) } + sub run { my $self = shift; - DBIx::Class::Exception->throw('run() takes no arguments') if @_; + $self->throw_exception('run() takes no arguments') if @_; $self->_reset_exception_stack; $self->_reset_retried_count; @@ -219,9 +221,9 @@ sub _run { }; } -=head1 AUTHORS +=head1 AUTHOR AND CONTRIBUTORS -see L +See L and L in DBIx::Class =head1 LICENSE