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

# MEError.Code

An enumeration that models media extension error codes.

```
enum Code
```

## Topics

### Error codes

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

## Relationships

### Conforms To

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

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

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

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

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

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