監視ブロック
try block
監視ブロックは文の一つである。送出式が例外を送出したとき、それによって制御を得るコードは「ハンドラ(handler)」と呼ばれる。
構文
try-block:
try compound-statement handler-seq
function-block:
try ctor-initializer opt function-body handler-seq
handler-seq:
handler handler-seq opt
handler:
catch { exception-declaration } compound-statement
exception-declaration:
type-specifier-seq declarator
type-specifier-seq abstract-declarator
type-specifier-seq
...
→文, 例外処理, 送出式
監視ブロックは文の一つである。送出式が例外を送出したとき、それによって制御を得るコードは「ハンドラ(handler)」と呼ばれる。
構文
try-block:
try compound-statement handler-seq
function-block:
try ctor-initializer opt function-body handler-seq
handler-seq:
handler handler-seq opt
handler:
catch { exception-declaration } compound-statement
exception-declaration:
type-specifier-seq declarator
type-specifier-seq abstract-declarator
type-specifier-seq
...
→文, 例外処理, 送出式
2005年10月12日(水) 12:58:51 Modified by takagi_nobuhisa