---
title: CVError
framework: corevideo
role: symbol
role_heading: Structure
path: corevideo/cverror
---

# CVError

CVError wraps CVReturn values to present them as Swift Error values. This type is used for all errors thrown in the CoreVideo framework. All CVReturn values are provided as static constants.

## Declaration

```swift
@frozen struct CVError
```

## Topics

### Initializers

- [init(rawValue:)](corevideo/cverror/init(rawvalue:).md)

### Instance Properties

- [errorDescription](corevideo/cverror/errordescription.md)

### Type Properties

- [allocationFailed](corevideo/cverror/allocationfailed.md)
- [internalError](corevideo/cverror/internalerror.md)
- [invalidArgument](corevideo/cverror/invalidargument.md)
- [invalidPixelBufferAttributes](corevideo/cverror/invalidpixelbufferattributes.md)
- [invalidPixelFormat](corevideo/cverror/invalidpixelformat.md)
- [invalidPoolAttributes](corevideo/cverror/invalidpoolattributes.md)
- [invalidSize](corevideo/cverror/invalidsize.md)
- [pixelBufferNotMetalCompatible](corevideo/cverror/pixelbuffernotmetalcompatible.md)
- [poolAllocationFailed](corevideo/cverror/poolallocationfailed.md)
- [retry](corevideo/cverror/retry.md)
- [unsupported](corevideo/cverror/unsupported.md)
- [wouldExceedAllocationThreshold](corevideo/cverror/wouldexceedallocationthreshold.md)

### Type Methods

- [check(_:)](corevideo/cverror/check(_:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Copyable](swift/copyable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Core Video Error Constants

- [Result Codes](corevideo/result-codes.md)
- [Data Types](corevideo/data-types.md)
