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


Instance Methods


constructor

Constructor that does not initialize any fields.

 

constructor

 

ExceptStatement()

 

init()

 

ExceptStatement()

 

Sub New()

constructor (Statement, String, IType)

Initializes a new exception statement and adds a single item

 

constructor(aBody: Statement; aName: String; aType: IType)

 

ExceptStatement(Statement aBody, String aName, IType aType)

 

init(_ aBody: Statement, _ aName: String, _ aType: IType)

 

ExceptStatement(Statement aBody, String aName, IType aType)

 

Sub New(aBody As Statement, aName As String, aType As IType)

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

 

method ToValue(aServicesParameter: Value; aServices: IServices): Value

 

Value ToValue(Value aServicesParameter, IServices aServices)

 

func ToValue(_ aServicesParameter: Value, _ aServices: IServices) -> Value

 

Value ToValue(Value aServicesParameter, IServices aServices)

 

Function ToValue(aServicesParameter As Value, aServices As IServices) As Value

Parameters:

  • aServicesParameter: Value containing the services
  • aServices: services instance