Use the C++ exception-handling functions to recover from unexpected events during program execution.
Function | Use | .NET Framework equivalent |
---|---|---|
_set_se_translator | Handle Win32 exceptions (C structured exceptions) as C++ typed exceptions | Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples. |
set_terminate | Install your own termination routine to be called by terminate | Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples. |
set_unexpected | Install your own termination function to be called by unexpected | Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples. |
terminate | Called automatically under certain circumstances after exception is thrown. Theterminate function calls abort or a function you specify usingset_terminate | Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples. |
unexpected | Calls terminate or a function you specify using set_unexpected. The unexpected function is not used in current Microsoft C++ exception-handling implementation | System::Exception Class |