4 ms·
> You cannot easily stash the first exception and do some cleanup if that may itself throw an exception. You can stash/rethrow exceptions since c++11 with an e
by josefx 6y ago
> You cannot easily stash the first exception and do some cleanup if that may itself throw an exception.
You can stash/rethrow exceptions since c++11 with an exception pointer if you really need to.
https://en.cppreference.com/w/cpp/error/exception_ptr https://en.cppreference.com/w/cpp/error/exception_ptr