* Generates a user-friendly error report. */
| 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 | { |
nothing calls this directly
no test coverage detected