catch all exceptions in all tutorials and examples
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
// ----------------- Main program -----------------
|
||||
|
||||
int main()
|
||||
try
|
||||
{
|
||||
/// \page tutorial1
|
||||
/// We set the number of blocks in each direction.
|
||||
@@ -102,6 +103,10 @@ int main()
|
||||
/// \internal [write vtk]
|
||||
/// \endinternal
|
||||
}
|
||||
catch (const std::exception &e) {
|
||||
std::cerr << "Program threw an exception: " << e.what() << "\n";
|
||||
throw;
|
||||
}
|
||||
|
||||
/// \page tutorial1
|
||||
/// We read the vtu output file in \a Paraview and obtain the following grid.
|
||||
|
||||
Reference in New Issue
Block a user