TRY Macro

Syntax

TRY

Remarks

Identifies a block of code that might throw exceptions. Those exceptions are handled in the following CATCH and AND_CATCH blocks. Recursion is allowed: exceptions may be passed to an outer TRY block, either by ignoring them or by using the THROW_LAST macro.

Note:

The TRY block is defined as a C++ scope (delineated by curly braces). If you declare variables in this scope, remember that they are accessible only within that scope.

See Also

THROW, CATCH, AND_CATCH, END_CATCH