<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "PHASE",
  "identifier" : "/documentation/PHASE/PHASEAssetError-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "PHASE"
    ],
    "preciseIdentifier" : "s:SC15PHASEAssetErrorLeV"
  },
  "title" : "PHASEAssetError"
}
-->

# PHASEAssetError

An asset error that PHASE reports.

```
struct PHASEAssetError
```

## Topics

### Creating an Error

[`enum Code`](/documentation/PHASE/PHASEAssetError-swift.struct/Code)

Codes that identify framework asset errors.

### Comparing Errors

### Inspecting Error Information

### Identifying an Error Cause

[`static var alreadyExists: PHASEAssetError.Code`](/documentation/PHASE/PHASEAssetError-swift.struct/alreadyExists)

An error the asset registry throws when the app registers an asset twice by the same name.

[`static var badParameters: PHASEAssetError.Code`](/documentation/PHASE/PHASEAssetError-swift.struct/badParameters)

An error that indicates an asset registry call contains invalid data.

[`static var failedToLoad: PHASEAssetError.Code`](/documentation/PHASE/PHASEAssetError-swift.struct/failedToLoad)

An error that indicates an asset failed to load.

[`static var generalError: PHASEAssetError.Code`](/documentation/PHASE/PHASEAssetError-swift.struct/generalError)

An error the asset registry throws when an unspecified problem occurs.

[`static var invalidEngineInstance: PHASEAssetError.Code`](/documentation/PHASE/PHASEAssetError-swift.struct/invalidEngineInstance)

An error that indicates an asset registry call references an invalid engine.

[`static var memoryAllocation: PHASEAssetError.Code`](/documentation/PHASE/PHASEAssetError-swift.struct/memoryAllocation)

An error the framework throws when an asset depletes system memory.

### Type Properties

[`static var errorDomain: String`](/documentation/PHASE/PHASEAssetError-swift.struct/errorDomain)

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)