---
title: "application(_:didFailToContinueUserActivityWithType:error:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsapplicationdelegate/application(_:didfailtocontinueuseractivitywithtype:error:)"
---

# application(_:didFailToContinueUserActivityWithType:error:)

Tells the delegate that the app couldn’t continue the specified activity.

## Declaration

```swift
@MainActor optional func application(_ application: NSApplication, didFailToContinueUserActivityWithType userActivityType: String, error: any Error)
```

## Parameters

- `application`: The app that attempted to continue the activity.
- `userActivityType`: The activity type that was attempted.
- `error`: An error object indicating the reason for the failure.

## Discussion

Discussion Use this method to let the user know that the specified activity could not be continued. If you do not implement this method, AppKit displays an error to the user with an appropriate message about the reason for the failure.

## See Also

### Continuing User Activities

- [application(_:willContinueUserActivityWithType:)](appkit/nsapplicationdelegate/application(_:willcontinueuseractivitywithtype:).md)
- [application(_:continue:restorationHandler:)](appkit/nsapplicationdelegate/application(_:continue:restorationhandler:).md)
- [application(_:didUpdate:)](appkit/nsapplicationdelegate/application(_:didupdate:).md)
