19.3.5 Exception Specifications (cont.)

Syntax 19.3 : Exception Specification
return_type function_name(parameters)
	 throw (type_name1, type_name2, ..., type_namen)
}
Example:
void process_products(fstream& fs)
   throw (UnexpectedEndOfFile, bad_alloc)
Purpose: List the types of all exceptions that a function can throw.

prev |top |next