Name

throw operator — Throws an exception

Synopsis

               throw-expr ::= throw [assignment-expr]

The throw operator throws assignment-expr as an exception. The throw expression has type void. With no operand, throw rethrows the current pending exception. If no exception is pending, terminate( ) is called.

See Also

expression, try, Chapter 3, <exception>, <stdexcept>