---
title: "deviceBrowserView(_:didEncounterError:)"
framework: quartz
role: symbol
role_heading: Instance Method
path: "quartz/ikdevicebrowserviewdelegate/devicebrowserview(_:didencountererror:)"
---

# deviceBrowserView(_:didEncounterError:)

Invoked when the device browser encounters an error.

## Declaration

```swift
optional func deviceBrowserView(_ deviceBrowserView: IKDeviceBrowserView!, didEncounterError error: (any Error)!)
```

## Parameters

- `deviceBrowserView`: The object that sent the message.
- `error`: The error the device browser encountered.

## Discussion

Discussion The user should handle the error in some fashion, for example, presenting an error panel to the user.
