<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLModelError-swift.struct/Code/generic",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "c:@E@MLModelError@MLModelErrorGeneric"
  },
  "title" : "MLModelError.Code.generic"
}
-->

# MLModelError.Code.generic

An error code for runtime issues that don’t apply to the other error codes.

```
case generic
```

## Discussion

Core ML typically throws (Swift) or returns (Objective-C) this error when it encounters an internal problem.

---

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)