std::string Exception::getErrorMessage() const { if (!_formatted_msg.empty()) { return _formatted_msg; } try { _formatted_msg = boost::str(getMessageFormatter()); return _formatted_msg; } catch(std::exception& e) { string s("!!!Cannot format error message: "); s += e.what(); s += "Check argument count for "; s += getErrorId(); s += "!!!"; assert(false); return s; } catch(...) { string s("!!!Cannot format error message. Check argument count for "); s += getErrorId(); s += "!!!"; assert(false); return s; } }
std::string Exception::getErrorMessage() const { try { return boost::str(getMessageFormatter()); } catch(...) { string s("!!!Cannot format error message. Check argument count for "); s += getErrorId(); s += "!!!"; return s; } }