<!--
{
  "availability" : [
    "Xcode: 27.0.0 -",
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Evaluations",
  "identifier" : "/documentation/Evaluations/EvaluationResultsError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Evaluations"
    ],
    "preciseIdentifier" : "s:11Evaluations22EvaluationResultsErrorO"
  },
  "title" : "EvaluationResultsError"
}
-->

# EvaluationResultsError

Errors the framework throws when parsing evaluation results.

```
enum EvaluationResultsError
```

## Overview

```swift
do {
    throw EvaluationResultsError.fileNotFound(URL(fileURLWithPath: "/tmp/results.json"))
} catch EvaluationResultsError.fileNotFound(let url) {
    print("File not found: \(url)")
}
```

## Topics

### Enumeration Cases

[`case emptyJSONFile`](/documentation/Evaluations/EvaluationResultsError/emptyJSONFile)

The JSON file exists but contains no data.

[`case fileNotFound(URL)`](/documentation/Evaluations/EvaluationResultsError/fileNotFound(_:))

The specified file URL is not findable on disk.

[`case invalidJSONFormat`](/documentation/Evaluations/EvaluationResultsError/invalidJSONFormat)

The JSON data doesn’t match the expected evaluation result format.

## Relationships

### Conforms To

[`LocalizedError`](/documentation/Foundation/LocalizedError)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Error`](/documentation/Swift/Error)

---

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)