Skip to content
Snippets Groups Projects
Commit 23ba2755 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

k_order: catch any possible exception thrown. #1252

parent 1de5ac8e
Branches exceptions
No related tags found
No related merge requests found
/*
* Copyright (C) 2008-2014 Dynare Team
* Copyright (C) 2008-2017 Dynare Team
*
* This file is part of Dynare.
*
......@@ -347,6 +347,10 @@ extern "C" {
strstrm << "dynare:k_order_perturbation: Caught general exception: " << e.message();
DYN_MEX_FUNC_ERR_MSG_TXT(strstrm.str().c_str());
}
catch (...)
{
DYN_MEX_FUNC_ERR_MSG_TXT("dynare:k_order_perturbation: Caught undefined exception.");
}
plhs[0] = mxCreateDoubleScalar(0);
} // end of mexFunction()
} // end of extern C
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment