<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/DatasetError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents12DatasetErrorO"
  },
  "title" : "DatasetError"
}
-->

# DatasetError

Dataset processing errors.

```
enum DatasetError
```

## Topics

### Analyzing the error

[`case incompatibleDataFormat(URL, debugDescription: String)`](/documentation/CreateMLComponents/DatasetError/incompatibleDataFormat(_:debugDescription:))

An error that indicates that a resource doesn’t have the expected data format.

[`case incorrectName(URL, debugDescription: String)`](/documentation/CreateMLComponents/DatasetError/incorrectName(_:debugDescription:))

An error that indicates that a resource has incorrect name format.

[`case missingResource(URL)`](/documentation/CreateMLComponents/DatasetError/missingResource(_:))

An error that indicates that a resource is missing.

[`case unreadableResource(URL)`](/documentation/CreateMLComponents/DatasetError/unreadableResource(_:))

An error that indicates that a resource is unreadable.

### Getting the debug description

[`var debugDescription: String`](/documentation/CreateMLComponents/DatasetError/debugDescription)

A text representation of the error.

### Default Implementations

[CustomDebugStringConvertible Implementations](/documentation/CreateMLComponents/DatasetError/CustomDebugStringConvertible-Implementations)

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)