MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / dump

Method dump

src/runtime/error.cpp:66–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void result::dump(std::ostream& ostr) const {
67 if(is_success()) ostr << "[success] ";
68 else {
69 ostr << "from " << _impl->origin.get_file() << ":"
70 << _impl->origin.get_line() << " @ " << _impl->origin.get_function()
71 << "(): " << _impl->info.what();
72 if (_impl->info.error_code().is_code_specified())
73 ostr << " (error code = " << _impl->info.error_code().str() << ")";
74 }
75}
76
77result register_error(
78 const source_location &origin, const error_info &info) {

Callers 1

whatMethod · 0.95

Calls 5

get_lineMethod · 0.80
is_code_specifiedMethod · 0.80
whatMethod · 0.45
error_codeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected