...
If the copy constructor for the exception object type throws during the copy initialization, std::terminate()
is called, which can result in undefined possibly unexpected implementation-defined behavior. For more information on implicitly calling std::terminate()
, see ERR50-CPP. Do not abruptly terminate the program.
...