<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLCreateError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML13MLCreateErrorO"
  },
  "title" : "MLCreateError"
}
-->

# MLCreateError

The errors Create ML throws while performing various operations, such as
training models, making predictions, writing models to a file system, and so
on.

```
enum MLCreateError
```

## Topics

### Identifying errors

[`MLCreateError.cancelled`](/documentation/CreateML/MLCreateError/cancelled)

An error that indicates you canceled the training session.

[`MLCreateError.incompatibleParameters(parameter:originalValue:newValue:)`](/documentation/CreateML/MLCreateError/incompatibleParameters(parameter:originalValue:newValue:))

An error that indicates the training session parameters are
incompatible.

[`MLCreateError.modifiedTrainingData`](/documentation/CreateML/MLCreateError/modifiedTrainingData)

An error that indicates the training data is different from the data
when you created the session.

[`MLCreateError.io(reason:)`](/documentation/CreateML/MLCreateError/io(reason:))

An error that indicates an I/O failure.

[`MLCreateError.type(reason:)`](/documentation/CreateML/MLCreateError/type(reason:))

An error that indicates a missing or incorrect type.

[`MLCreateError.generic(reason:)`](/documentation/CreateML/MLCreateError/generic(reason:))

An error that indicates a failure not covered by one of the other
errors.

[`MLCreateErrorDomain`](/documentation/CreateML/MLCreateErrorDomain)

A global constant that defines the domain for Create ML errors.

### Describing errors

[`description`](/documentation/CreateML/MLCreateError/description)

A human-readable description of the error.

[`debugDescription`](/documentation/CreateML/MLCreateError/debugDescription)

A human-readable description of the error that’s suitable for output
during debugging.

### Describing errors in a user interface

[`errorCode`](/documentation/CreateML/MLCreateError/errorCode)

The numeric code of this error.

[`errorUserInfo`](/documentation/CreateML/MLCreateError/errorUserInfo)

A dictionary that provides additional information about the error.

[`errorDescription`](/documentation/CreateML/MLCreateError/errorDescription)

A localized, human-readable description of the error and why it
occurred, if applicable.

[`failureReason`](/documentation/CreateML/MLCreateError/failureReason)

A localized, human-readable reason behind the failure, if applicable.



---

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)