Debian Codegraph @

yo/coroutines/demo/readbinary/handle.cc

raw
1 #include "main.ih"
2
3 int handle(exception_ptr ptr)
4 try
5 {
6 rethrow_exception(ptr);
7 }
8 catch (exception const &exc)
9 {
10 cout << "error: " << exc.what() << '\n';
11 return 1;
12 }
13 catch (int ret)
14 {
15 return ret;
16 }
17 catch (...)
18 {
19 cout << "unexpected exception\n";
20 return 1;
21 }