MCPcopy Create free account
hub / github.com/boostorg/beast / print_exception

Function print_exception

example/doc/ssl/server.cpp:24–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace ssl = net::ssl;
23
24void
25print_exception(std::exception_ptr eptr)
26{
27 if(eptr)
28 {
29 try
30 {
31 std::rethrow_exception(eptr);
32 }
33 catch(std::exception& e)
34 {
35 std::cerr << e.what() << std::endl;
36 }
37 }
38}
39
40net::awaitable<void>
41handle_session(ssl::stream<net::ip::tcp::socket> stream)

Callers

nothing calls this directly

Calls 1

whatMethod · 0.80

Tested by

no test coverage detected