<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserKit",
  "identifier" : "/documentation/BrowserKit/BEBrowserDataExchangeError-swift.struct/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "BrowserKit"
    ],
    "preciseIdentifier" : "c:@E@BEBrowserDataExchangeError"
  },
  "title" : "BEBrowserDataExchangeError.Code"
}
-->

# BEBrowserDataExchangeError.Code

The types of data exchange errors that can occur.

```
enum Code
```

## Overview

The static [`BEBrowserDataExchangeError`](/documentation/BrowserKit/BEBrowserDataExchangeError-swift.struct) members are of this type.

## Topics

### Identifying error types

[`case export`](/documentation/BrowserKit/BEBrowserDataExchangeError-swift.struct/Code/export)

An error that indicates a failure during the export operation.

[`case `import``](/documentation/BrowserKit/BEBrowserDataExchangeError-swift.struct/Code/import)

An error that indicates a failure during the import operation.

[`case unknown`](/documentation/BrowserKit/BEBrowserDataExchangeError-swift.struct/Code/unknown)

An error that indicates an unexpected failure.

### Initializing an error code

[`init?(rawValue: Int)`](/documentation/BrowserKit/BEBrowserDataExchangeError-swift.struct/Code/init(rawValue:))

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

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)