---
title: "webView(_:unableToImplementPolicyWithError:frame:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/webpolicydelegate/webview(_:unabletoimplementpolicywitherror:frame:)"
---

# webView(_:unableToImplementPolicyWithError:frame:)

Handles or drops events that were rejected by a policy maker.

## Declaration

```swift
optional func webView(_ webView: WebView!, unableToImplementPolicyWithError error: (any Error)!, frame: WebFrame!)
```

## Parameters

- `webView`: The WebView object for which this object is the policy delegate.
- `error`: The error that occurred.
- `frame`: The frame in which the error occurred.

## Discussion

Discussion Delegates might implement this method to display or log an error message. If you do not implement this method, no action is taken.
