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


 

constructor

Creates a new empty instance of this class

 

constructor

 

ExceptStatementItem()

 

init()

 

ExceptStatementItem()

 

Sub New()

constructor (Statement, Value, String, IType)

Creates a new instance of this class

 

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

 

ExceptStatementItem(Statement aBody, Value aCondition, String aName, IType aType)

 

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

 

ExceptStatementItem(Statement aBody, Value aCondition, String aName, IType aType)

 

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

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

constructor (Statement, Value, String, array of IType)

Creates a new instance of this class

 

constructor(aBody: Statement; aCondition: Value; aName: String; params aType: array of IType)

 

ExceptStatementItem(Statement aBody, Value aCondition, String aName, params IType[] aType)

 

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

 

ExceptStatementItem(Statement aBody, Value aCondition, String aName, IType[]... aType)

 

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

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

 

property Types: IList<IType> read;

 

IList<IType> Types { get; }

 

var Types: IList<IType> { get{} }

 

IList<IType> Types { __get; }

 

ReadOnly Property Types() As IList<IType>

 

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

 

property Types: IList<IType> read;

 

IList<IType> Types { get; }

 

var Types: IList<IType> { get{} }

 

IList<IType> Types { __get; }

 

ReadOnly Property Types() As IList<IType>

 

constructor

Creates a new empty instance of this class

 

constructor

 

ExceptStatementItem()

 

init()

 

ExceptStatementItem()

 

Sub New()

constructor (Statement, Value, String, IType)

Creates a new instance of this class

 

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

 

ExceptStatementItem(Statement aBody, Value aCondition, String aName, IType aType)

 

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

 

ExceptStatementItem(Statement aBody, Value aCondition, String aName, IType aType)

 

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

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

constructor (Statement, Value, String, array of IType)

Creates a new instance of this class

 

constructor(aBody: Statement; aCondition: Value; aName: String; params aType: array of IType)

 

ExceptStatementItem(Statement aBody, Value aCondition, String aName, params IType[] aType)

 

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

 

ExceptStatementItem(Statement aBody, Value aCondition, String aName, IType[]... aType)

 

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

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