MCPcopy Create free account
hub / github.com/Clarionos/clarion / top_message

Method top_message

libraries/fc/src/exception.cpp:235–245  ·  view source on GitHub ↗

* Generates a user-friendly error report. */

Source from the content-addressed store, hash-verified

233 * Generates a user-friendly error report.
234 */
235 string exception::top_message( )const
236 {
237 for( auto itr = my->_elog.begin(); itr != my->_elog.end(); ++itr )
238 {
239 auto s = fc::format_string( itr->get_format(), itr->get_data() );
240 if (!s.empty()) {
241 return s;
242 }
243 }
244 return string();
245 }
246
247 void NO_RETURN exception_factory::rethrow( const exception& e )const
248 {

Callers

nothing calls this directly

Calls 6

format_stringFunction · 0.85
stringClass · 0.85
get_formatMethod · 0.80
get_dataMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected