<!--
{
  "availability" : [
    "iOS: 9.3.0 -",
    "iPadOS: 9.3.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.2 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaPlayer",
  "identifier" : "/documentation/MediaPlayer/MPError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "s:SC11MPErrorCodeLeV"
  },
  "title" : "MPError"
}
-->

# MPError

A structure that represents a framework error.

```
struct MPError
```

## Topics

### Inspecting an error

[`errorDomain`](/documentation/MediaPlayer/MPError/errorDomain)

[`MPErrorDomain`](/documentation/MediaPlayer/MPErrorDomain)

The Media Player framework error domain.

[`MPError.Code`](/documentation/MediaPlayer/MPError/Code)

An enumeration that represents error codes for framework operations.

[Error constants](/documentation/MediaPlayer/error-constants)

Error code constants for framework operations.



---

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)