A throw expression is used to throw exceptions to C++ exception handlers. It causes control to be passed out of the block enclosing the throw statement to the first C++ exception handler whose catch argument matches the throw expression. A throw expression is a unary expression of type void.
![]()
C++ Exception Handling
Overview