Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Throws an exception passed as a parameter.
void rethrow_exception(exception_ptr P);
Parameters
- P
The caught exception to re-throw. If P is a null exception_ptr, the function throws std::bad_exception.
Remarks
After you store a caught exception in an exception_ptr object, the primary thread can process the object. In your primary thread, call the rethrow_exception function together with the exception_ptr object as its argument. The rethrow_exception function extracts the exception from the exception_ptr object and then throws the exception in the context of the primary thread.