| 32 | namespace lbann { |
| 33 | |
| 34 | static std::string default_error_message() |
| 35 | { |
| 36 | std::ostringstream oss("LBANN exception", std::ios_base::ate); |
| 37 | const auto rank = get_rank_in_world(); |
| 38 | if (rank >= 0) { |
| 39 | oss << " on rank " << rank; |
| 40 | } |
| 41 | return oss.str(); |
| 42 | } |
| 43 | |
| 44 | exception::exception() : exception(default_error_message()) {} |
| 45 |
no test coverage detected