MCPcopy Create free account
hub / github.com/LBANN/lbann / default_error_message

Function default_error_message

src/utils/exception.cpp:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace lbann {
33
34static 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
44exception::exception() : exception(default_error_message()) {}
45

Callers 1

exceptionMethod · 0.85

Calls 1

get_rank_in_worldFunction · 0.85

Tested by

no test coverage detected