Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) throw

 

throw is the keyword to produce an exception.

 

#include <exception>

int main()
{
  throw std::exception();
}

 

A try-block indicates the calling of functions that might throw an exception and is followed by a catch-block, where the exception is handled.

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict