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

# PHASESoundEventError

A sound event error that PHASE reports.

```
struct PHASESoundEventError
```

## Topics

### Creating an Error

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

Codes that identify sound event errors.

### Comparing Errors

### Inspecting Error Information

### Identifying an Error Cause

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

An error that indicates the app misconfigures data or calls the framework in unsupported succession.

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

An error that indicates a sound event contains invalid data.

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

An error that indicates a sound event object is no longer valid.

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

An error the framework throws when it fails to find a particular sound event.

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

An error the framework throws when a sound event depletes system memory.

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

An error the framework throws when engine initialization interrupts sound event playback.

### Type Properties

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

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)