#include <exception>
#include <sstream>
Go to the source code of this file.
◆ THROW_EXCEPTION
| #define THROW_EXCEPTION |
( |
| MESSAGE | ) |
|
Value: { \
std::stringstream except_str{}; \
except_str<<__FILE__<<":"<<__LINE__<<" --- "; \
except_str<<MESSAGE; \
throw std::runtime_error(except_str.str()); \
}
Definition at line 10 of file throwExcept.h.
10#define THROW_EXCEPTION(MESSAGE) \
11 { \
12 std::stringstream except_str{}; \
13 except_str<<__FILE__<<":"<<__LINE__<<" --- "; \
14 except_str<<MESSAGE; \
15 throw std::runtime_error(except_str.str()); \
16 }