20 #ifndef OPM_RESERVOIR_COUPLING_ERROR_MACROS_HPP 21 #define OPM_RESERVOIR_COUPLING_ERROR_MACROS_HPP 23 #include <opm/common/ErrorMacros.hpp> 24 #include <opm/simulators/utils/DeferredLoggingErrorHelpers.hpp> 25 #define RCOUP_LOG_THROW(Exception, message) \ 27 if (this->logger().haveDeferredLogger()) { \ 28 OPM_DEFLOG_THROW(Exception, message, this->logger().deferredLogger()); \ 31 OPM_THROW(Exception, message); \ 34 #endif // OPM_RESERVOIR_COUPLING_ERROR_MACROS_HPP