MCPcopy Create free account
hub / github.com/catboost/catboost / FormatBackTraceTo

Function FormatBackTraceTo

util/generic/yexception.cpp:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49Y_DECLARE_UNUSED static void FormatBackTraceTo(IOutputStream& out, const TBackTrace& backtrace) {
50 if (backtrace.size() == 0) {
51 out << "backtrace is empty";
52 return;
53 }
54 try {
55 backtrace.PrintTo(out);
56 } catch (const std::exception& e) {
57 out << "Failed to print backtrace: ";
58 FormatExceptionTo(out, e);
59 }
60}
61
62void FormatCurrentExceptionTo(IOutputStream& out) {
63 auto exceptionPtr = std::current_exception();

Callers 1

FormatCurrentExceptionToFunction · 0.85

Calls 3

FormatExceptionToFunction · 0.85
sizeMethod · 0.45
PrintToMethod · 0.45

Tested by

no test coverage detected