Moved an exception, so the report is more general
This commit is contained in:
parent
509ad47b39
commit
33786a5c8a
1 changed files with 22 additions and 21 deletions
|
|
@ -42,8 +42,15 @@ pass_down_xacts::pass_down_xacts(xact_handler_ptr handler,
|
||||||
{
|
{
|
||||||
TRACE_CTOR(pass_down_xacts, "xact_handler_ptr, xacts_iterator");
|
TRACE_CTOR(pass_down_xacts, "xact_handler_ptr, xacts_iterator");
|
||||||
|
|
||||||
for (xact_t * xact = iter(); xact; xact = iter())
|
for (xact_t * xact = iter(); xact; xact = iter()) {
|
||||||
|
try {
|
||||||
item_handler<xact_t>::operator()(*xact);
|
item_handler<xact_t>::operator()(*xact);
|
||||||
|
}
|
||||||
|
catch (const std::exception& err) {
|
||||||
|
add_error_context(item_context(*xact, "While handling transaction"));
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
item_handler<xact_t>::flush();
|
item_handler<xact_t>::flush();
|
||||||
}
|
}
|
||||||
|
|
@ -187,7 +194,6 @@ void anonymize_xacts::operator()(xact_t& xact)
|
||||||
|
|
||||||
void calc_xacts::operator()(xact_t& xact)
|
void calc_xacts::operator()(xact_t& xact)
|
||||||
{
|
{
|
||||||
try {
|
|
||||||
xact_t::xdata_t& xdata(xact.xdata());
|
xact_t::xdata_t& xdata(xact.xdata());
|
||||||
|
|
||||||
if (last_xact) {
|
if (last_xact) {
|
||||||
|
|
@ -204,11 +210,6 @@ void calc_xacts::operator()(xact_t& xact)
|
||||||
|
|
||||||
last_xact = &xact;
|
last_xact = &xact;
|
||||||
}
|
}
|
||||||
catch (const std::exception& err) {
|
|
||||||
add_error_context(item_context(xact, "While calculating transaction"));
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void invert_xacts::operator()(xact_t& xact)
|
void invert_xacts::operator()(xact_t& xact)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue