cpp/error/bad exception

is the type of the exception thrown by the C++ runtime in the following situations: