ErrorMacros.hpp File Reference #include <opm/common/OpmLog/OpmLog.hpp> #include <string> #include <sstream> #include <exception> #include <stdexcept> #include <cassert>
Include dependency graph for ErrorMacros.hpp:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Macro Definition Documentation◆ OPM_ERROR_IF
◆ OPM_MESSAGE
◆ OPM_MESSAGE_IF
◆ OPM_REPORT
◆ OPM_THROW
Value:
do { \
std::ostringstream oss__; \
Opm::OpmLog::error(oss__.str()); \
throw Exception(oss__.str()); \
} while (false)
static void error(const std::string &message) ◆ OPM_THROW_NOLOG
Value:
do { \
std::ostringstream oss__; \
oss__ << "[" << __FILE__ << ":" << __LINE__ << "] " << message; \
throw Exception(oss__.str()); \
} while (false)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||