TryStatement 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]
TryStatement = public class(Statement)

A try/finally/except or try/except/finally statement. The try statement executes the body and will trigger the finally block in all cases, the except block is executed when the body of the try statement fails. When both except and finally are passed, the order they are passed in define which one will be called first.

Namespace: Cirrus Statements


Members

Method
Description
constructor(aBody: Statement; anExcept: ExceptStatement)Initialize a new try statement
constructor(aBody: Statement; anExcept: ExceptStatement; aFinally: Statement)Initialize a new try statement
constructor(aBody, aFinally: Statement)Initialize a new try statement
constructor(aBody, aFinally: Statement; anExcept: ExceptStatement)Initialize a new try statement
constructorInitialize an empty try statement


Properties

Property
Description
Body: StatementBody of the Try statement
Except: ExceptStatementExcept body
Finally: StatementFinally statement. Finally is executed before Except (if any)
FinallyAfter: StatementFinally statement. Ignored if Finally is set, executed after Except


See Also

Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox