| 83 | } |
| 84 | |
| 85 | inline void TestBackTrace() { |
| 86 | try { |
| 87 | ythrow TWithBackTrace<TIoSystemError>() << "test"; |
| 88 | } catch (...) { |
| 89 | UNIT_ASSERT(CurrentExceptionMessage().find('\n') != TString::npos); |
| 90 | |
| 91 | return; |
| 92 | } |
| 93 | |
| 94 | UNIT_ASSERT(false); |
| 95 | } |
| 96 | |
| 97 | template <typename TException> |
| 98 | static void EnsureCurrentExceptionHasBackTrace() { |
nothing calls this directly
no test coverage detected