Merge pull request #1855 from totto82/fix_throw

throw runtime_error instead of logic_error
This commit is contained in:
Atgeirr Flø Rasmussen 2019-05-22 11:39:09 +02:00 committed by GitHub
commit 025b828e80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}
}