<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "CKToolJS",
  "identifier" : "/documentation/CKToolJS/ArrayError",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CKTool JS"
    ],
    "preciseIdentifier" : "cl/ArrayError"
  },
  "title" : "ArrayError"
}
-->

# ArrayError

An error an array validator emits when an array’s elements fail validation.

```
interface ArrayError
```

## Overview

Extends `ValidationError`. The indices of the elements that failed validation are in the `indices` member. The `errors` array has the errors that correspond to the elements identified by the `indices` member.

## Topics

### Instance Properties

[`attribute Array array;`](/documentation/CKToolJS/ArrayError/array)

The array that failed validation.

[`attribute Array errors;`](/documentation/CKToolJS/ArrayError/errors)

An array of errors that correspond to indexes.

[`attribute Array indices;`](/documentation/CKToolJS/ArrayError/indices)

An array of indexes of elements that failed validation in the array.

## Relationships

### Inherited By

[`ValidationError`](/documentation/CKToolJS/ValidationError)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)