---
title: MLCreateError
framework: createml
role: symbol
role_heading: Enumeration
path: createml/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.

## Declaration

```swift
enum MLCreateError
```

## Topics

### Identifying errors

- [MLCreateError.cancelled](createml/mlcreateerror/cancelled.md)
- [MLCreateError.incompatibleParameters(parameter:originalValue:newValue:)](createml/mlcreateerror/incompatibleparameters(parameter:originalvalue:newvalue:).md)
- [MLCreateError.modifiedTrainingData](createml/mlcreateerror/modifiedtrainingdata.md)
- [MLCreateError.io(reason:)](createml/mlcreateerror/io(reason:).md)
- [MLCreateError.type(reason:)](createml/mlcreateerror/type(reason:).md)
- [MLCreateError.generic(reason:)](createml/mlcreateerror/generic(reason:).md)
- [MLCreateErrorDomain](createml/mlcreateerrordomain.md)

### Describing errors

- [description](createml/mlcreateerror/description.md)
- [debugDescription](createml/mlcreateerror/debugdescription.md)

### Describing errors in a user interface

- [errorCode](createml/mlcreateerror/errorcode.md)
- [errorUserInfo](createml/mlcreateerror/erroruserinfo.md)
- [errorDescription](createml/mlcreateerror/errordescription.md)
- [failureReason](createml/mlcreateerror/failurereason.md)

### Default Implementations

- [CustomDebugStringConvertible Implementations](createml/mlcreateerror/customdebugstringconvertible-implementations.md)
- [CustomNSError Implementations](createml/mlcreateerror/customnserror-implementations.md)
- [CustomStringConvertible Implementations](createml/mlcreateerror/customstringconvertible-implementations.md)
- [LocalizedError Implementations](createml/mlcreateerror/localizederror-implementations.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomNSError](foundation/customnserror.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Error](swift/error.md)
- [Escapable](swift/escapable.md)
- [LocalizedError](foundation/localizederror.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Supporting types

- [MLModelMetadata](createml/mlmodelmetadata.md)
- [MLSplitStrategy](createml/mlsplitstrategy.md)
