throw runtime_error instead of logical_error

This commit is contained in:
Tor Harald Sandve 2019-05-22 10:08:55 +02:00
parent 8197bcfc54
commit a33c967ad0

View File

@ -53,7 +53,7 @@ inline void checkForExceptionsAndThrow(int exception_thrown, const std::string&
{
const auto& cc = Dune::MPIHelper::getCollectiveCommunication();
if (cc.max(exception_thrown) == 1) {
throw std::logic_error(message);
throw std::runtime_error(message);
}
}
@ -69,7 +69,7 @@ inline void logAndCheckForExceptionsAndThrow(Opm::DeferredLogger& deferred_logge
deferred_logger.clearMessages();
const auto& cc = Dune::MPIHelper::getCollectiveCommunication();
if (cc.max(exception_thrown) == 1) {
throw std::logic_error(message);
throw std::runtime_error(message);
}
}