
ArrayException
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
None
See Also
Class Hierarchy, Thread, Array Methods
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
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
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