| 5 | void trySomething(int i); |
| 6 | |
| 7 | int main() |
| 8 | { |
| 9 | for (int i {}; i < 2; ++i) |
| 10 | { |
| 11 | try |
| 12 | { |
| 13 | trySomething(i); |
| 14 | } |
| 15 | catch (const Trouble& t) |
| 16 | { |
| 17 | // What seems to be the trouble? |
| 18 | std::cout << "Exception: " << t.what() << std::endl; |
| 19 | } |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | void trySomething(int i) |
| 24 | { |
nothing calls this directly
no test coverage detected