<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMBlockBuffer/Error",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Media",
      "CoreMedia"
    ],
    "preciseIdentifier" : "s:So16CMBlockBufferRefa9CoreMediaE5ErrorV"
  },
  "title" : "CMBlockBuffer.Error"
}
-->

# CMBlockBuffer.Error

A structure that defines block buffer errors.

```
struct Error
```

## Topics

### Errors

[`static let badCustomBlockSource: NSError`](/documentation/CoreMedia/CMBlockBuffer/Error/badCustomBlockSource)

An error that indicates an attempt to create a block buffer without a valid source.

[`static let badLengthParameter: NSError`](/documentation/CoreMedia/CMBlockBuffer/Error/badLengthParameter)

An error that indicates you called a function with an invalid length parameter.

[`static let badOffsetParameter: NSError`](/documentation/CoreMedia/CMBlockBuffer/Error/badOffsetParameter)

An error that indicates you called a function with offset value is out of range.

[`static let badPointerParameter: NSError`](/documentation/CoreMedia/CMBlockBuffer/Error/badPointerParameter)

An error that indicates a parameter is invalid.

[`static let blockAllocationFailed: NSError`](/documentation/CoreMedia/CMBlockBuffer/Error/blockAllocationFailed)

An error that indicates you specified an invalid allocation block.

[`static let emptyBlockBuffer: NSError`](/documentation/CoreMedia/CMBlockBuffer/Error/emptyBlockBuffer)

An error that indicates you passed an empty block buffer to a function.

[`static let insufficientSpace: NSError`](/documentation/CoreMedia/CMBlockBuffer/Error/insufficientSpace)

An error that indicates there’s insufficient space to perform the operation.

[`static let structureAllocationFailed: NSError`](/documentation/CoreMedia/CMBlockBuffer/Error/structureAllocationFailed)

An error that indicates the allocation of a structure failed.

[`static let unallocatedBlock: NSError`](/documentation/CoreMedia/CMBlockBuffer/Error/unallocatedBlock)

An error that indicates a function encountered an unallocated block of memory.

## Relationships

### Conforms To

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

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

---

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)