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

# PHASEError

An error that PHASE reports.

## Declaration

```swift
struct PHASEError
```

## Topics

### Identifying an Error Cause

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

### Creating an Error

- [PHASEError.Code](phase/phaseerror-swift.struct/code.md)

### Type Properties

- [errorDomain](phase/phaseerror-swift.struct/errordomain.md)

## Relationships

### Conforms To

- [CustomNSError](foundation/customnserror.md)
- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Framework Errors

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