| 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() |
no test coverage detected