How to catch the Errors exported by GMSH?
Hi. I am using GMSH C++ API now. How to catch Errors like:
and
I just want to catch these errors after they happens, and label this mesh as a failed mesh.
For example:
vector<bool> Label_mesh(100, true);
for (size_t i = 0; i < 100; ++i)
{
try
{
//gmsh process
}
catch (GMSH_ERROR e)
{
//label this mesh as a failed one
Label_mesh[i] = false;
}
}
I checked the API. I did not find a Error class.