ExceptStatement
Overview
This class represents an except block inside a try statement. To create a try/except with no "on" statement in it, pass no name (nil) and set the type to System.Object, this will catch any exception.
Location
- Reference: RemObjects.Elements.Cirrus.dll
- Namespace: RemObjects.Elements.Cirrus.Statements
- Ancestry: List<ExceptStatementItem> | ExceptStatement
Instance Methods
constructor
Constructor that does not initialize any fields.
constructor
ExceptStatement()
init()
ExceptStatement()
Sub New()
Initializes a new exception statement and adds a single item
Parameters:
- aBody: Body for this except
- aName: optional name for this except item
- aType: type to break on
constructor (array of ExceptStatementItem)
Initializes a new exception statement
constructor(params anItems: array of ExceptStatementItem)
ExceptStatement(params ExceptStatementItem[] anItems)
init(_ anItems: ExceptStatementItem...)
ExceptStatement(ExceptStatementItem[]... anItems)
Sub New(ParamArray anItems As ExceptStatementItem())
Parameters:
- anItems: array of items to add to this 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
SetOverflowCheckRecursive
sets the value of the Overflow check of the statements contained in this class.
method SetOverflowCheckRecursive(value: Boolean)
void SetOverflowCheckRecursive(Boolean value)
func SetOverflowCheckRecursive(_ value: Boolean)
void SetOverflowCheckRecursive(Boolean value)
Sub SetOverflowCheckRecursive(value As Boolean)
Parameters:
- value: new value
ToValue
Convert to a value tree
Parameters:
- aServicesParameter: Value containing the services
- aServices: services instance