---
title: "init(rawValue:)"
framework: BrowserKit
role: symbol
role_heading: Initializer
platforms: [iOS 26.4+, iPadOS 26.4+]
path: "browserkit/bebrowserdataexchangeerror-swift.struct/code/init(rawvalue:)"
---

# init(rawValue:)

Initializes an error code with a value that represents the underlying type of error.

## Declaration

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

## Parameters

- `rawValue`: The raw integer value that represents the error code.
