MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / GetExceptionStr

Function GetExceptionStr

util/src/Error.cpp:111–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 }
110
111 std::string
112 GetExceptionStr(std::exception_ptr const& exc)
113 {
114 std::string excStr;
115 if (!exc)
116 {
117 return excStr;
118 }
119
120 try
121 {
122 std::rethrow_exception(exc);
123 }
124 catch (std::exception const& e)
125 {
126 excStr = e.what();
127 }
128 catch (...)
129 {
130 excStr = "unknown";
131 }
132 return excStr;
133 }
134
135 std::string
136 GetLastExceptionStr()

Callers 3

LoadMethod · 0.85
FrameworkEvent.cppFile · 0.85
GetLastExceptionStrFunction · 0.85

Calls 1

whatMethod · 0.45

Tested by

no test coverage detected