<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MusicUnderstanding",
  "identifier" : "/documentation/MusicUnderstanding/MusicUnderstandingError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Music Understanding"
    ],
    "preciseIdentifier" : "s:18MusicUnderstanding0aB5ErrorO"
  },
  "title" : "MusicUnderstandingError"
}
-->

# MusicUnderstandingError

An error that occurs during a music understanding session.

```
enum MusicUnderstandingError
```

## Topics

### Types of error cases

[`case emptyAnalysisSet`](/documentation/MusicUnderstanding/MusicUnderstandingError/emptyAnalysisSet)

The error that occurs when someone requests and analysis of an empty analysis set.

[`case internalError`](/documentation/MusicUnderstanding/MusicUnderstandingError/internalError)

The error that occurs when an unexpected internal failure prevents the session from completing.

[`case invalidAsset`](/documentation/MusicUnderstanding/MusicUnderstandingError/invalidAsset)

The error that occurs when someone initializes a session with an invalid asset.

[`case sessionInProgress`](/documentation/MusicUnderstanding/MusicUnderstandingError/sessionInProgress)

The error that occurs when someone requests analysis while a session is already in progress.

### Enumeration Cases

[`case hasProtectedContent`](/documentation/MusicUnderstanding/MusicUnderstandingError/hasProtectedContent)

The error that occurs when a session is initialized with an `AVAsset` whose content is
protected by DRM and cannot be decoded for analysis.

## Relationships

### Conforms To

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

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

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

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

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