<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaExtension",
  "identifier" : "/documentation/MediaExtension/MEError-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "MediaExtension"
    ],
    "preciseIdentifier" : "s:SC7MEErrorLeV"
  },
  "title" : "MEError"
}
-->

# MEError

A MediaExtension framework error.

```
struct MEError
```

## Overview

If a [`MediaExtension`](/documentation/MediaExtension) method fails, the <doc://com.apple.documentation/documentation/Foundation/NSError> object contains an [`MEError`](/documentation/MediaExtension/MEError-swift.struct) instance that provides specific information about the failure.

## Topics

### Identifying the error domain and codes

[`static var allocationFailure: MEError.Code`](/documentation/MediaExtension/MEError-swift.struct/allocationFailure)

An error code that indicates the extension can’t allocate memory.

[`static var endOfStream: MEError.Code`](/documentation/MediaExtension/MEError-swift.struct/endOfStream)

An error code that indicates the extension reached the end of the source file.

[`static var internalFailure: MEError.Code`](/documentation/MediaExtension/MEError-swift.struct/internalFailure)

An error code that indicates the extension encountered an internal operation failure, such as code loading.

[`static var invalidParameter: MEError.Code`](/documentation/MediaExtension/MEError-swift.struct/invalidParameter)

An error code that indicates the extension received an invalid parameter.

[`static var locationNotAvailable: MEError.Code`](/documentation/MediaExtension/MEError-swift.struct/locationNotAvailable)

An error code that indicates a specific sample isn’t contiguous, spans more than one file, or is for some other reason unsuitable to read directly from a file.

[`static var noSamples: MEError.Code`](/documentation/MediaExtension/MEError-swift.struct/noSamples)

An error code that indicates there are no samples in the track or a request to load a sample buffer fails.

[`static var noSuchEdit: MEError.Code`](/documentation/MediaExtension/MEError-swift.struct/noSuchEdit)

An error code that indicates the plug-in track reader received a request to return an edit that’s out of range.

[`static var parsingFailure: MEError.Code`](/documentation/MediaExtension/MEError-swift.struct/parsingFailure)

An error code that indicates the extension encountered an error while parsing the media.

[`static var permissionDenied: MEError.Code`](/documentation/MediaExtension/MEError-swift.struct/permissionDenied)

An error code that indicates the extension received a request to perform an invalid operation on a byte source.

[`static var propertyNotSupported: MEError.Code`](/documentation/MediaExtension/MEError-swift.struct/propertyNotSupported)

An error code that indicates the extension encountered a property it doesn’t support reading and writing to.

[`static var referenceMissing: MEError.Code`](/documentation/MediaExtension/MEError-swift.struct/referenceMissing)

An error code that indicates the decoder received a request to decode a sample without decoding the required reference frame dependencies first.

[`static var unsupportedFeature: MEError.Code`](/documentation/MediaExtension/MEError-swift.struct/unsupportedFeature)

An error code that indicates the extension doesn’t support an aspect of the media.

### Inspecting an error

  <doc://com.apple.documentation/documentation/Foundation/NSError/code>

  <doc://com.apple.documentation/documentation/Foundation/CustomNSError/errorCode>

  <doc://com.apple.documentation/documentation/Foundation/CustomNSError/errorUserInfo>

  <doc://com.apple.documentation/documentation/Swift/Hashable/hashValue>

  <doc://com.apple.documentation/documentation/Foundation/NSError/userInfo>

  <doc://com.apple.documentation/documentation/Swift/Equatable/==(_:_:)>

  <doc://com.apple.documentation/documentation/Swift/Equatable/!=(_:_:)>

  <doc://com.apple.documentation/documentation/Swift/Hashable/hash(into:)>

[`enum Code`](/documentation/MediaExtension/MEError-swift.struct/Code)

An enumeration that models media extension error codes.

### Type Properties

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

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)