ExceptStatementItem
Overview
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.
Location
- Reference: RemObjects.Elements.Cirrus.dll
- Namespace: RemObjects.Elements.Cirrus.Statements
constructor
Creates a new empty instance of this class
constructor
ExceptStatementItem()
init()
ExceptStatementItem()
Sub New()
Creates a new instance of this class
Parameters:
- aBody: Body for this on except block
- aCondition: Optional where condition
- aName: Optional name for the variable that holds the exception
- aType: type for the exception variable
Creates a new instance of this class
Parameters:
- aBody: Body for this on except block
- aCondition: Optional where condition
- aName: Optional name for the variable that holds the exception
- aType: types to break on
Body
Body for this statement
property Body: Statement read write;
Statement Body { get; set; }
var Body: Statement { get{} set{} }
Statement Body { __get; __set; }
Property Body() As Statement
BuildStatement
Converts a statement to string.
method BuildStatement(anIndent: Int32; sb: StringBuilder)
void BuildStatement(Int32 anIndent, StringBuilder sb)
func BuildStatement(_ anIndent: Int32, _ sb: StringBuilder)
void BuildStatement(Int32 anIndent, StringBuilder sb)
Sub BuildStatement(anIndent As Int32, sb As StringBuilder)
Parameters:
- anIndent: indentation to use
- sb: Output string builder
Condition
Where condition for this exception, optional
property Condition: Value read write;
Value Condition { get; set; }
var Condition: Value { get{} set{} }
Value Condition { __get; __set; }
Property Condition() As Value
Name
Name for the local introduced, if any.
property Name: String read write;
String Name { get; set; }
var Name: String { get{} set{} }
String Name { __get; __set; }
Property Name() As String
Type
Type of the introduced local, if any; if set without a local it's the type of exception to filter on
property Type: IType read write;
IType Type { get; set; }
var Type: IType { get{} set{} }
IType Type { __get; __set; }
Property Type() As IType
Types
Types to break on
Body
Body for this statement
property Body: Statement read write;
Statement Body { get; set; }
var Body: Statement { get{} set{} }
Statement Body { __get; __set; }
Property Body() As Statement
Condition
Where condition for this exception, optional
property Condition: Value read write;
Value Condition { get; set; }
var Condition: Value { get{} set{} }
Value Condition { __get; __set; }
Property Condition() As Value
Name
Name for the local introduced, if any.
property Name: String read write;
String Name { get; set; }
var Name: String { get{} set{} }
String Name { __get; __set; }
Property Name() As String
Type
Type of the introduced local, if any; if set without a local it's the type of exception to filter on
property Type: IType read write;
IType Type { get; set; }
var Type: IType { get{} set{} }
IType Type { __get; __set; }
Property Type() As IType
Types
Types to break on
constructor
Creates a new empty instance of this class
constructor
ExceptStatementItem()
init()
ExceptStatementItem()
Sub New()
Creates a new instance of this class
Parameters:
- aBody: Body for this on except block
- aCondition: Optional where condition
- aName: Optional name for the variable that holds the exception
- aType: type for the exception variable
Creates a new instance of this class
Parameters:
- aBody: Body for this on except block
- aCondition: Optional where condition
- aName: Optional name for the variable that holds the exception
- aType: types to break on
BuildStatement
Converts a statement to string.
method BuildStatement(anIndent: Int32; sb: StringBuilder)
void BuildStatement(Int32 anIndent, StringBuilder sb)
func BuildStatement(_ anIndent: Int32, _ sb: StringBuilder)
void BuildStatement(Int32 anIndent, StringBuilder sb)
Sub BuildStatement(anIndent As Int32, sb As StringBuilder)
Parameters:
- anIndent: indentation to use
- sb: Output string builder