Hacker News new | ask | show | jobs
by josefx 2166 days 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