---
title: "requestFailed(for:withError:)"
framework: callkit
role: symbol
role_heading: Instance Method
path: "callkit/cxcalldirectoryextensioncontextdelegate/requestfailed(for:witherror:)"
---

# requestFailed(for:withError:)

Called when a Call Directory app extension request fails.

## Declaration

```swift
func requestFailed(for extensionContext: CXCallDirectoryExtensionContext, withError error: any Error)
```

## Parameters

- `extensionContext`: The extension context associated with the failed request.
- `error`: An error object containing information about the request failure.
