mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-01 21:55:50 +00:00
The utils::make_nested_exception_ptr function works similar to std::throw_with_nested, but instead of storing the currently thrown exception as the nested exception and then immediately throwing the new exception, it receives the nested exception as an std::exception_ptr and also returns an std::exception_ptr. If the standard library supports it, the function does not perform any throws. Otherwise the fallback logic performs two throws.
5.6 KiB
5.6 KiB