Skip to content
Snippets Groups Projects
Commit f39488c8 authored by Carl Philipp Klemm's avatar Carl Philipp Klemm
Browse files

also catch and redirect logic_errors

parent cd7b241c
Branches
No related tags found
No related merge requests found
...@@ -201,6 +201,10 @@ Eigen::VectorX<fv> calcDrt(Eigen::VectorX<std::complex<fv>>& impedanceSpectra, E ...@@ -201,6 +201,10 @@ Eigen::VectorX<fv> calcDrt(Eigen::VectorX<std::complex<fv>>& impedanceSpectra, E
{ {
throw drt_errror(std::string(ex.what())); throw drt_errror(std::string(ex.what()));
} }
catch(const std::logic_error& ex)
{
throw drt_errror(std::string(ex.what()));
}
if(rSeries) if(rSeries)
*rSeries = x[x.size()-1]; *rSeries = x[x.size()-1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment