Commit 646a577a authored by GILLES Sebastien's avatar GILLES Sebastien

#1480 Replace exception by graceful exit.

parent 5d638863
......@@ -18,6 +18,7 @@
# include "Utilities/Exceptions/Exception.hpp"
# include "Utilities/Environment/Environment.hpp"
# include "Utilities/InputData/Base.hpp"
# include "Utilities/Exceptions/GracefulExit.hpp"
# include "ThirdParty/Wrappers/Tclap/StringPair.hpp"
# include "ThirdParty/IncludeWithoutWarning/Tclap/Tclap.hpp"
......
......@@ -103,13 +103,12 @@ namespace MoReFEM::Internal::MoReFEMDataNS
std::cout << '\n' << input_data_file << " wasn't existing and has just been created on root processor; "
"please edit it and then copy it onto all machines intended to run the code in parallel." << std::endl;
throw Exception("Input data file to edit and complete!", __FILE__, __LINE__);
throw ExceptionNS::GracefulExit(__FILE__, __LINE__);
}
}
} // namespace MoReFEM::Internal::MoReFEMDataNS
......
......@@ -125,7 +125,7 @@ namespace // anonymous
if (first_call)
{
decltype(auto) environment = Utilities::Environment::CreateOrGetInstance(__FILE__, __LINE__);
decltype(auto) environment = Utilities::Environment::CreateOrGetInstance(__FILE__, __LINE__);
// Deliberately not the same as in the Lua file (to avoid automatic deletion of the directory during
// MoReFEMData initialization).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment