ExceptStatementItem Class

From The Oxygene Language Wiki

Jump to:navigation, search

This is a Language topic
Feel free to add your notes to this topic below.


[Serializable]
ExceptStatementItem = public class

This class holds an on <x>: <type> do <statement> statement inside an except block. Note that while the base exception type is called System.Exception, it's customary to catch System.Object for a try/except that catches any exception. The possible except statement items are checked in order and only 1 of them will be executed at most, so when having the first item except on System.Object, no other would trigger even if the class is a closer match.


Namespace: Cirrus Statements


Members

Method
Description
constructor(aBody: Statement; aWereCondition: Value; aName: String; aType: IType)Creates a new empty instance of this class
constructorCreates a new empty instance of this class


Properties

Property
Description
Body: StatementBody for this statement
Condition: ValueWhere condition for this exception, optional
Name: StringName for the local introduced, if any.
Type: ITypeType of the introduced local, if any; if set without a local it's the type of exception to filter on


See Also


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox