---
title: "init(rawValue:)"
framework: corevideo
role: symbol
role_heading: Initializer
path: "corevideo/cverror/init(rawvalue:)"
---

# init(rawValue:)

Creates CVError with the given error code. Returns nil if rawValue is kCVReturnSuccess

## Declaration

```swift
init?(rawValue: CVReturn)
```
