<!--
{
  "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/SerializationError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents18SerializationErrorO"
  },
  "title" : "SerializationError"
}
-->

# SerializationError

A serialization error.

```
enum SerializationError
```

## Topics

### Analyzing the error

[`case notRepresentableAsCoreML(debugDescription: String)`](/documentation/CreateMLComponents/SerializationError/notRepresentableAsCoreML(debugDescription:))

An error that indicates that the transformer cannot be represented as a CoreML model.

[`case packageAlreadyExists(URL)`](/documentation/CreateMLComponents/SerializationError/packageAlreadyExists(_:))

An error that indicates that the package already exists at the URL.

[`case packageNotFound(URL)`](/documentation/CreateMLComponents/SerializationError/packageNotFound(_:))

An error that indicates that the package at specified URL was not found.

### Getting the debug description

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

A text representation of the error.

### Default Implementations

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

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)