CxStatementTry
Description
- Derived from
-
CxStatement abstract
ICxVariableContainer
ICxStatementUsageProvider
A statement that executes a statement block while selectively catching thrown exceptions and optionally executes a second statement as the final step:
try { a = 1; } catch(Type a) { a = 2; } try { a = 1; } finally { a = 3; } try { a = 1; } catch(Type a) { a = 2; } finally { a = 3; }
ICxVariableContainer.Variable returns the variable declaration of the caught exception, which will be null
iff this try statement does not have a catch
block. The variable name (see ICxIdContainer.Name) will be NameIgnore iff the catch block does not contain a variable name.
Public / Constants
NameIgnore
If the catch block does not declare a name for the caught exception, ICxIdContainer.Name will be set to this value: 'ignore'
.
- See also