# IErrors

Description:

`IErrors` is a collection in which errors are collected that are returned by the server during an operation.
```cpp
import "OxSvrSpt.idl"
```
Note:

The keyword "errorX" is used for individual entries, where X is the position of the error in the collection. However, this keyword is rarely used. Instead, you should query the collection either using `foreach` or by position.

Properties:
```cpp
long Count [get]
long ResponseResult [get]
IError Item([in] VARIANT Index) [get]
```
Documentation of Properties:

* `long Count [get]`

`Count` returns the number of elements in the collection.

Parameters:

: `plNumber` (VB return value) number of elements in the collection.

* `IError Item([in] VARIANT Index) [get]`

`Item` returns the specified element of the collection based on position or key.

If a position outside the valid index is specified, an error with the error value `errCollectionIndexOutOfRange` is returned. If the item cannot be found, an error with the value `errCollectionItemNotFound` is returned.

Parameters:

: `Index` position or name of the requested element

: `pptItem` corresponding `JobError` object

* `long ResponseResult [get]`

`ResponseResult` returns the return value of the server call that caused the error.

Parameters:

: `pVal` (VB return value) return value of the server call.

* `long ResultCode [get]`

`ResultCode` returns the last error value of the server call.

Parameters:

: `pVal` (VB return value) server error value.
