---
title: "MLCreateError.type(reason:)"
framework: createml
role: symbol
role_heading: Case
path: "createml/mlcreateerror/type(reason:)"
---

# MLCreateError.type(reason:)

An error that indicates a missing or incorrect type.

## Declaration

```swift
case type(reason: String)
```

## See Also

### 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.generic(reason:)](createml/mlcreateerror/generic(reason:).md)
- [MLCreateErrorDomain](createml/mlcreateerrordomain.md)
