try block

An exception thrown in a try block can possibly be handled by an associated handler.

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
CWG 98C++98a switch statement can transfer controlinto the compound-statement of a try blockprohibited
CWG 1167C++98it was unspecified whether a function try block on a destructorwill catch exceptions from a base or member destructorsuch exceptionsare caught

# See also