C++11 - std::rethrow_if_nested

less than 1 minute read

std::throw_with_nested will create a class inherited from std::std::nested_exception and user exception then it will get current exception and user exception in it then throw.
Ex)
std::throw_with_nested(MyException());