19.3.1 Catching Exceptions
Supply a handler with the
try
statement:
try {
code
} catch (logic_error& e) {
handler
}
If an error is thrown in the
try
clause, execution goes to the
catch
clause
If no appropriate handler is found, the next outer
try
block is examined
prev
|
top
|
next