try-block

try-block

Associates one or more exception handlers (catch-clauses) with a compound statement.

Syntax

try compound-statement handler-sequence

where handler-sequence is a sequence of one or more handlers, which have the following syntax:

登录查看完整内容
catch ( attr(optional) type-specifier-seq declarator ) compound-statement (1)