Skip to content
Snippets Groups Projects
Commit aa3ea106 authored by Patrick Jaap's avatar Patrick Jaap
Browse files

Better exception handling by rethrowing directly

Otherwise the type of the exception gets lost.
parent cba9eedc
No related branches found
No related tags found
1 merge request!74Some improvements on exception handling
......@@ -77,7 +77,7 @@ energy(const LocalView& localView,
energy = localEnergy_->energy(localView,localAConfiguration);
} catch (Dune::Exception &e) {
trace_off();
throw e;
throw;
}
energy >>= pureEnergy;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment