Exception Handling is a type of error-checking, available
in many programming languages
#include <exception> using std::exception;
// this becomes part of the function's declaration void someFunction() throw (DivideByZero, SomeOtherException);This can be used to limit the type of exceptions that a function is allowed to throw (and provides better information to the caller). Look at the following examples:
void someFunction1() throw(); // empty throw list void someFunction2(); // no throw listThe first function (with empty throw list) can throw no exceptions to the outside. The second (with no throw list) could throw any kind -- no limits