throw expression

throw expression

Signals an erroneous condition and executes an error handler.

Syntax

throw expression (1)
throw (2)

Explanation

See try-catch block for more information about try and catch (exception handler) blocks
1) First, copy-initializes the exception object from expression (this may call the move constructor for rvalue expression, and the copy/move may be subject to