18 : std::runtime_error(arg) {
20 o <<
"Error in " << function <<
" (" << file <<
":" << line <<
"): " << arg
26 const char *
what()
const throw() {
return msg.c_str(); }
33#define THROW_PRETTY_DYNOTREE(arg) \
34 throw pretty_runtime_exception(arg, __FILE__, __LINE__, __FUNCTION__);
36#define CHECK_PRETTY_DYNOTREE(condition, arg) \
38 throw pretty_runtime_exception(arg, __FILE__, __LINE__, __FUNCTION__); \
41#define CHECK_PRETTY_DYNOTREE__(condition) \
43 throw pretty_runtime_exception(#condition, __FILE__, __LINE__, \
47#define MESSAGE_PRETTY_DYNOTREE(arg) \
48 std::cout << "Message in " << __FUNCTION__ << " (" << __FILE__ << ":" \
49 << __LINE__ << ") --" << arg << std::endl;
Definition dynotree_macros.h:11
~pretty_runtime_exception()
Definition dynotree_macros.h:25
const char * what() const
Definition dynotree_macros.h:26
pretty_runtime_exception(const std::string &arg, const char *file, int line, const char *function)
Definition dynotree_macros.h:16
Definition dynotree_macros.h:9