<!--
{
  "availability" : [
    "macOS: 10.3.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebPolicyDelegate/webView(_:unableToImplementPolicyWithError:frame:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(pl)WebPolicyDelegate(im)webView:unableToImplementPolicyWithError:frame:"
  },
  "title" : "webView(_:unableToImplementPolicyWithError:frame:)"
}
-->

# webView(_:unableToImplementPolicyWithError:frame:)

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

```
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

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

---

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)