libsigc++
3.6.0
|
sigc::exception_catch() catches an exception thrown from within the wrapped functor and directs it to a catcher functor.
sigc::exception_catch() catches an exception thrown from within the wrapped functor and directs it to a catcher functor.
This catcher can then rethrow the exception and catch it with the proper type.
Note that the catcher is expected to return the same type as the wrapped functor so that normal flow can continue.
Catchers can be cascaded to catch multiple types, because uncaught rethrown exceptions proceed to the next catcher adaptor.
The functor that sigc::exception_catch() returns can be passed directly into sigc::signal::connect() or sigc::signal::connect_first().