---
title: PHASEError.Code
framework: PHASE
role: symbol
role_heading: Enumeration
path: phase/phaseerror-swift.struct/code
---

# PHASEError.Code

Codes that identify errors in PHASE.

## Declaration

```swift
enum Code
```

## Topics

### Errors

- [PHASEError.Code.initializeFailed](phase/phaseerror-swift.struct/code/initializefailed.md)
- [PHASEError.Code.invalidObject](phase/phaseerror-swift.struct/code/invalidobject.md)

### Initializers

- [init(rawValue:)](phase/phaseerror-swift.struct/code/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Framework Errors

- [PHASEError](phase/phaseerror-swift.struct.md)
- [PHASEErrorDomain](phase/phaseerrordomain.md)
