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

# PHASEError

An error that PHASE reports.

```
struct PHASEError
```

## Topics

### Identifying an Error Cause

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

An error that indicates the engine failed to initialize.

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

An error that indicates an object is invalid in a specific context.

### Creating an Error

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

Codes that identify errors in PHASE.

### Comparing Errors

### Inspecting Error Information

### Type Properties

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

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)