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

# PHASEError.Code

Codes that identify errors in PHASE.

```
enum Code
```

## Topics

### Errors

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

An error that indicates the engine failed to initialize.

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

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

### Initializers

[`init?(rawValue: Int)`](/documentation/PHASE/PHASEError-swift.struct/Code/init(rawValue:))

## Relationships

### Conforms To

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

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

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

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

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

[`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)