<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAI",
  "identifier" : "/documentation/CoreAI/AssetError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core AI"
    ],
    "preciseIdentifier" : "s:11CoreAIAsset10AssetErrorV"
  },
  "title" : "AssetError"
}
-->

# AssetError

An error that occurs during model asset operations.

```
struct AssetError
```

## Topics

### Inspecting error information

[`kind`](/documentation/CoreAI/AssetError/kind-swift.property)

The classification of the error.

[`debugMessage`](/documentation/CoreAI/AssetError/debugMessage)

An optional message with additional debugging context.

[`errorDescription`](/documentation/CoreAI/AssetError/errorDescription)

A localized description of the error.

### Creating errors

[`init(kind:debugMessage:)`](/documentation/CoreAI/AssetError/init(kind:debugMessage:))

Creates an asset error.

### Defining error types

[`Kind`](/documentation/CoreAI/AssetError/Kind-swift.enum)

The reasons an asset operation can fail.

## Relationships

### Conforms To

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

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

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

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

---

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)