Aztec® Programming Language
Version 1.1 Alpha 2

Copyright © 2010-2017, Aztec Development Group, All Rights Reserved

Download Aztec

Search        Contact Us

I'd give ol' Curt my money...

He'd play all day for me.

- Allen Collins and Ronnie Van Zant

 

aztec.system.ArrayException

public class ArrayException from<ExceptionEvent>

Base

Event

ExceptionEvent

ArrayException

The ArrayException class is used to register an error with accessing an array. The Virtual Machine will fire this exception for a variety of conditions when creating or accessing the array. There are three different types of errors that are registered, depending on the situation - index (access), dimension (creation) and resize. There is an ArrayException constant corresponding to each of these error types that is defined below.

 

ArrayException Methods

ArrayException() Constructor for the ArrayException class
Type() Error identifier that corresponds to a constant
Array() Array reference that encountered the error

ArrayException Constants

Constant Data Item Data Type Value
ArrayException.InvalidIndex int 1
ArrayException.InvalidDimension int 2
ArrayException.InvalidResize int 3

Derived Classes

See Also

  


ArrayException()

public method ArrayException(int ErrorType, base [] EventArray)

Parameters

ErrorType

Indicates the type of array error that was encountered

EventArray

Reference to the array that encountered the event

Return Value

None

Description

Constructor for the ArrayException class using the error type and the array reference that encountered the error.

 

ArrayException Class


Type()

public method<int> Type()

Parameters

None

Return Value

IIdentifier of the error type

Description

This method returns the error identifier associated with the array exception. It will be one of three values - InvalidIndex, InvalidDimension or InvalidResize. Each of these items are constants in this same class.

 

ArrayException Class


Array()

public method<base[]> Array()

Parameters

None

Return Value

IArray that encountered an error

Description

This method returns a reference to the array that encountered the issue. The return type is a "base array" so it has to support any type of array (size, dimensions and data type).

 

ArrayException Class

 

Copyright © 2010-2017

Aztec Development Group

All Rights Reserved

Download Aztec